My Life/2016년
[AngulartJS] ui-select에서 목록(options)를 정상적으로 가지고 오지 못할 때
우라질레이터
2016. 3. 7. 14:07
ui-select를 사용하고 있는데, 목록이 정상적으로 출력되지 않을 때,
ui-select의 ui-select-choice의 옵션에 ng-hide="!$select.open" 추가
<ui-select name="RESOLVE_SYSTEM_NAME" data-ng-model="variable.model['RESOLVE_SYSTEM_NAME']" data-on-select="func.set.status('model', variable.modelList, data.pk)" required> <ui-select-match data-placeholder="Select...">{{$select.selected.DSCRT}}</ui-select-match> <ui-select-choices ng-hide="!$select.open" data-repeat="item.CMM_CD_ID as item in variable.info.Resolvedby"> <div data-ng-bind-html="item.DSCRT"/> </ui-select-choices> </ui-select> |