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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -