1
我有一個對象作爲如何在角度ui-選擇選擇中重複對象屬性?
{
key1: value1,
key2: value2
}
在ui-select-choices
怎麼會重複呢?我嘗試了一些東西,但沒有什麼工作作爲
<ui-select ng-model="selectedChoice" theme="select2">
<ui-select-match placeholder="{{'select_product' | translate}}" allow-clear="true">
<span ng-bind="$select.selected"></span>
</ui-select-match>
<ui-select-choices repeat="key as (key, value) in (productList | filter: $select.search)">
<span>{{::key}}</span>
</ui-select-choices>
</ui-select>
謝謝工作.. – pritesh
@ pritesh Cool :) –