<ui-select ng-model="vm.coupon[vm.editorTab].value" theme="bootstrap"> <ui-select-match >{{$select.selected.name}} </ui-select-match> <ui-select-choices repeat="data in vm.couponList">{{data.name}}</ui-select-choices> </ui-select>
vm.couponList = res.data.result;设置默认值 vm.coupon[groupId].value = vm.couponList[index];if dom element 'ui-select' doesn't show, it may be the height of parent element limitation.