Showing manually added value as the last option with ngOptions of Angularjs -
i creating select input using ngoption.
<select ng-model="foo" ng-options="foo.bar foo in foos"> <option value="">add new</option> </select>
now showing option first option in select input want show option last option in input. how can so?
this not supported ngoptions
. options are:
- push "add new" object onto
foos
- use
ng-repeat
instead ofng-options
- (don't this, way more trouble think) - write (or find)
ng-options
-like directive works way want
Comments
Post a Comment