This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-options include array properties #11733
Closed
Description
If an array contains additional properties (notably, as when fetched with Restangular, which adds several functions to the array), these extra properties are included in the iteration for ng-options, leading to unexpected "junk" entries in the select dropdown.
This differs from the iteration when using ng-repeat over the same array, which does not include such properties.
(This is new behavior in v1.4 rc0 and rc1. v1.3 does not show this behavior)