Angularjs Select With Filter Leaves First Line Empty But Not When Filter Is Applied Upfront
I am a bit lost as to why my ng-options is once again returning an empty line with a filter. Please have a look at this plunker The idea is to display in a dropdown list an org cha
Solution 1:
a filter creates a new array so basically your model and your options are 2 different objects hence the select doesn't recognizes the models value as part of its selection thats why you have nothing selected in the first one. on the second one you are selection the model from the already filtered data set so the model does belong to the options array
Post a Comment for "Angularjs Select With Filter Leaves First Line Empty But Not When Filter Is Applied Upfront"