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

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -