2

Have two ui-selects and changing only ng-model (data have from one mongodb collection):

<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>

How can i add to the first ui-select option, for example 'option1', and to the second 'option2'?

Blakes Seven
  • 49,422
  • 14
  • 129
  • 135
Eugeniusz Zuev
  • 149
  • 4
  • 15

0 Answers0