Ich benutze eckig ausgewählt für die Auflistung der Optionen. Aber wie ng-Optionen für verschachtelte Array verwenden?Wie benutzt man ng-Optionen für verschachtelte Arrays?
<select chosen
option="countries"
ng-model="data"
ng-options="??">
</select>
Dies ist mein Array.
$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",
}
]
}
]
Ich möchte die Option Gruppe von Kategorienamen liegen zur Liste
cat1
action1
action2
cat2
action3
Action4
cat3
action5
action6