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