This is my JSON data:
"multipleLayerDropdown" : [
{"title":"Google","url":"#"},
{"title":"Another action","url":"#"},
{"title":"Something else here","url":"#"},
{"title":"More options", "submenu":[
{"title":"Second Level 1","url":"#"},
{"title":"Second Level 2","submenu":[
{"title":"Third Level 1","url":"#"},
{"title":"Third Level 2","url":"#"}
]},
{"title":"Second Level 3","url":"#"},
{"title":"Second Level 4","submenu":[
{"title":"Third Level 1","url":"#"},
{"title":"Third Level 2","url":"#"}
]}
]}
]
I would expect something like below:
- Another action
- Something else here
- More options
- Second Level 1
- Second Level 2
- Third Level 1
- Third Level 2
- Second Level 3
- Second Level 4
- Third Level 1
- Third Level 2
Above example shows only the 3 nested level. If the nested data is more than 3, it will also be displayed. Example, if nested JSON data is 5, 5 of them will be displayed. Anyone know how to display all the nested JSON data (using ng-repeat/any other angularjs method)?