1

I want to apply a class to select box options in angularjs.

<div ng-controller="ExController" ng-init="init([{name:'name1',city:'city1'},{name:'name2',city:'city2'},{name:'name3',city:'city3'}])">
<select ng-model="selectedCustomer" ng-options="cust.name + '-' + cust.city for cust in customers | orderBy:'name'"></select>
</div>

I tried using ng-class to select tag but the class is not getting applied to options.

oluies
  • 17,694
  • 14
  • 74
  • 117

0 Answers0