Hi guys, currently I get a JSON back which is working fine. But now I want
to build a tree menu (with depth) from this JSON.
I have been struggeling for over a week now with no results. Can anyone
help me out please and tell me how I can do this? My JSON:
{
"categories": [
{
"category_name": "Algemeen",
"clean_category_name": "algemeen",
"depth": 0
},
{
"category_name": "Code kloppen",
"clean_category_name": "code-kloppen",
"depth": 1
},
{
"category_name": "Development",
"clean_category_name": "development",
"depth": 0
},
{
"category_name": "Middle-end",
"clean_category_name": "middle-end",
"depth": 1
},
{
"category_name": "xxx",
"clean_category_name": "xxx",
"depth": 2
},
{
"category_name": "aaa",
"clean_category_name": "aaa",
"depth": 3
},
{
"category_name": "King of the void!",
"clean_category_name": "king-of-the-void",
"depth": 4
}
]
}
Basicly 0 means it is a main category. 1 is a sub category of 0, 2 is a
subcategory of 1 and so on.
I hope someone can help me out on this matter :)
Best reagards
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.