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 of ng-options - (don't this, way more trouble think)
  • write (or find) ng-options-like directive works way want

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -