[Solved] How to get selected value in drop down in angular js controller


I would use ng-options and ng-model. Your HTML will look something like this:

<select ng-model="myColor" ng-options="color.name for color in colors"></select>

reference:

https://docs.angularjs.org/api/ng/directive/ngModel

https://docs.angularjs.org/api/ng/directive/ngOptions

0

solved How to get selected value in drop down in angular js controller