javascript - More options in ng-options -


i have select list generated ng-options. intent create functionality 1 can view lists , items, create new lists , on. occurred me instead of making button text "create new list" 1 select , empty option selection list , select list turn form (with directive).

i wondering following:

is possible add custom options established ng-options list? example:

<select ng-options="value value.name value in list --> add empty option right after this"> </select> 

<select ng-model="yourmodel">       <option value="" ng-selected="selected">an option</option>       <option ng-repeat="item in items">{{item.name}}</option>       <option value="">another option</option>     </select>  

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -