Angular, Select List First Item Is Empty
I am populating my select list like so -
Solution 2:
Angular by default creates a blank first selection to avoid accidental selection of an option. To remove this, set scope1 = obj.name
where obj.name is the name of the first element in your array.
Solution 3:
It seems the value of scope1
is empty or undefined, if it's empty try to define it with ng-init
or in controller.
Post a Comment for "Angular, Select List First Item Is Empty"