【发布时间】:2018-03-12 18:58:35
【问题描述】:
我想通过 ng-class 向 UI 选择的特定 LI 元素添加一个类,但我无法这样做。
例子-
<ui-select ng-model="selected" theme="select2">
<ui-select-match placeholder="Select">{{$select.selected.name}}
</ui-select-match>
<ui-select-choices repeat="student in studentList | filter: $select.search" ng-class="{{student.name}} == 'ABC' ? 'found' : 'not_Found' "> {{student.name}}
</ui-select-choices>
</ui-select>
如果有人有任何想法,请帮助我
【问题讨论】: