2

有两个 ui-select 并且只更改 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 选项,例如“option1”,以及第二个“option2”?

4

0 回答 0