angularjs - How to get selected innetText value in select box using angular -


html:

<select ng-model="productlist.name" ng-options="productitem.uuid productitem.name productitem in product.items">                </select> 

render :

<option value="prod_1">product 1</option> <option value="prod_2">product 2</option> 

when select option in drop down list need show label value product 1 or product 2.

so make @ ng-model productlist.label.

but "prod_1" or "prod_2"


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -