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.
ngOptions with boolean values breakes select element #3490
Closed
Description
I have this array for ngOptions:
$scope.boolValues = [{value: true, name: 'True'}, {value: false, name: 'False'}];
and this ng-options in html:
ng-options="bool.value as bool.name for bool in boolValues"
When I try to select "False" in select element new empty options is created and selected. When I try to select "True", empty option is removed and correct option is selected.
I think ngOption directive is not prepared for boolean values...