11
rated 0 times
[
13]
[
2]
/ answers: 1 / hits: 55649
/ 11 Years ago, tue, september 10, 2013, 12:00:00
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?
More From » html