0
내 드롭 다운 인 것 같은 문제가있어 적절한 선택을 선택할 때마다 데이터가 표시되지 않습니다. 선택 사항에는 두 가지가 있습니다. 도움을드롭 다운 각도 Js에 특정 데이터를 표시 할 수 없음
CSHTML
<ui-select ng-model="ctrl.requestType" theme="selectize" title="Choose type of requisition" style="min-width: 140px;">
<ui-select-match placeholder="Select type of requisition">
<span ng-bind="$select.selected.name"></span>
</ui-select-match>
<ui-select-choices repeat="existingRequestType.name as existingRequestType in ctrl.existingRequestTypes | filter: $select.search">
<span ng-bind-html="existingRequestType.name| highlight: $select.search"> -
</span>
</ui-select-choices>
</ui-select>
Angular.JS 형식은
app.controller('myCtrl', function($scope, $http, $timeout, $interval) {
vm.existingRequestTypes = [{
name: 'Purchase'
},
{
name: 'Lease'
}
];
}
감사합니다!