私は以下のようにui-selectを使用しています。ui-select配列要素をドロップダウンの選択肢として表示
<ui-select id="ItemId" ng-model="ctrl.ItemId" theme="bootstrap"
ng-disabled="ctrl.DownDisabled" required>
<ui-select-match placeholder={{ctrl.Placeholder}}>{{$select.selected.item}}
</ui-select-match>
<ui-select-choices
repeat="item in ctrl.owners.components">
<div ng-bind-html="item | highlight: $select.search"></div>
</ui-select-choices>
<ui-select-no-choice>
No features were found
</ui-select-no-choice>
</ui-select>
それがオーバーitearingれるJSONは
ctrl.owners = {
value : 123,
teamName : ABC,
components : [a,b,c]
};
である。しかしUIのドロップダウンメニューには、 "いいえ機能が見つかりませんでした" と表示されます。どうした。私の目的は、components
を個々の選択肢としてドロップダウンに表示することです。 AFAIKこれは何らかの形で、ui-select-choices
のネストされたリピートを使用して行う必要があります。どうやってやるの?
プランナーを置くことができますか? –