オプションを一覧表示するために選択した角度を使用しています。しかし、ネストされた配列にng-optionsを使用する方法は?ネストされた配列にng-optionsを使用する方法は?
<select chosen
option="countries"
ng-model="data"
ng-options="??">
</select>
これは私の配列です。
私は、カテゴリ名の嘘で、このCAT1
アクション1
アクション2
CAT2
action3
action4 CAT3
action5をオプショングループを一覧表示したい
$scope.data= [
{
"Name": "Cat1",
"CategoryID": "1",
"actions": [
{
"ActionName": "action1",
},
{
"ActionName": "action2",
}
]
},
{
"Name": "cat 2",
"actions": [
{
"ActionName": "action3",
},
{
"ActionName": "action4",
}
]
}
{
"Name": "cat 3",
"actions": [
{
"ActionName": "action5",
},
{
"ActionName": "actions 5",
}
]
}
]
action6