json - Menu using AngularJS -



json - Menu using AngularJS -

i need create menu using angularjs based on json file looks like:

{ "menu": [{ "id": "1", "name": "movies", "parent_id": "0" }, { "id": "2", "name": "trailers", "parent_id": "1" }, { "id": "3", "name": "action , adventure", "parent_id": "1" }, { "id": "4", "name": "animation", "parent_id": "3" }, { "id": "5", "name": "kids", "parent_id": "0" }] }

the list should looks like:

movies trailers action , adventure animation kids

i don't know how create this, help great.

please go through link, need have tree construction in angularjs. go through link, hope help!

json angularjs

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

model view controller - MVC Rails Planning -