【发布时间】:2015-09-07 06:21:57
【问题描述】:
我在我的项目中使用 angular ui select https://github.com/angular-ui/ui-select。我正在使用ui-select 指令
我的代码:
<select class="input-small" ng-model="dashboard.style" ng-options="f for f in ['light','hpexp']" ng-change="styleUpdated()"></select>
我想用 ui-select 所以我做了,
<ui-select id="viewSelector"
class="viewSelector input-small"
ng-model="dashboard.style"
ng-options="f for f in ['light','hpexp']"
ng-change="styleUpdated()"
theme="selectize">
<ui-select-match placeholder="-- Select --">
{{$select.style}}</ui-select-match>
</ui-select>
但它不起作用。如何在ui-select中使用ng-options
谢谢!!
【问题讨论】:
-
你能在 fiddler 中添加这段代码吗?
-
当然……让我试试……
标签: javascript jquery angularjs angular-ui-select