如何添加角度ui-select自定义选项

时间:2015-08-15 16:27:20

标签: javascript angularjs ui-select

有两个ui选择并仅更改ng-model(数据来自一个mongodb集合):

<ui-select ng-model="flat.flatData.salesby" theme="bootstrap">
   <ui-select-match placeholder="Sales by">
      {{ $select.selected.ag_name }}
   </ui-select-match>
   <ui-select-choices repeat="uiag_name.ag_name as uiag_name in flat.ag track by $index | filter: $select.search">
     <div ng-bind-html="uiag_name.ag_name | highlight: $select.search"></div>
   </ui-select-choices>
</ui-select>

如何添加第一个ui-select选项,例如&#39; option1&#39;,以及第二个&#39; option2&#39;?

0 个答案:

没有答案
相关问题