我有2个相同类型的ui选择。例如,我已经用相同的数据(即存储)加载了2个ui-select。请建议我一个更好的选择。
如果ui-select 1是select storeA,则ui-select不会显示storeA。
<div class="col-lg-6">
<div class="form-group">
<label>Receipt Store</label>
<ui-select ng-model="domain.requestStore" theme="bootstrap" ng-disabled="disabled" ng-required="true">
<ui-select-match placeholder="Select a store in the list or search one...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="lookup in lookupData.requestStore track by $index"
refresh="loadLookup('requestStore', $select.search)"
refresh-delay="0">
<div ng-bind-html="lookup.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
</div>
</div>
<div class="col-lg-6">
<div class="form-group">
<label>Issue Store</label>
<ui-select ng-model="domain.issueStore" theme="bootstrap" ng-disabled="disabled" ng-required="true">
<ui-select-match placeholder="Select a store in the list or search one...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="lookup in lookupData.issueStore track by $index"
refresh="loadLookup('issueStore', $select.search)"
refresh-delay="0">
<div ng-bind-html="lookup.name | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
</div>
</div>