Angular HTML Select option disable and enable
问题 I have a html select option <select> <option ng-repeat="field in filter.fields" value="{{field.id}}">{{field.name}}</option> </select> which I am iterating from ng-repeat , I want to disable option on basis of a filed selectable like <select> <option ng-repeat="field in filter.fields" {field.selectable==true?enable:disable} value="{{field.id}}">{{field.name}}</option> </select> How can I achieve this with angular? 回答1: Assuming you have a structure like this: $scope.filter = { fields: [ {id: