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
Post a Comment