angularjs - How access the nested json data using ng-repeat or angular.forEach -


I have the following json file. I'm unable to get the data dynamically. Please help me solve this problem I need to see the URL value based on the submodule i need; Snom || Id. If I'm accessing the snake as Chapter 1, then I need to get all the vid -> url values ​​present for that module.

  [[" "name": "Introduction - About PMP credentials", "all 1": [{"snom": "Introduction to PMP", "ID": "1 "," Vid ": [{" url ":" www.abcd.co "}, {" url ":" Www.xyz.com "}, {" url ":" www.xyz.com "}}} , {"Sname": "Chapter 1", "id": "2", "vid": [{"url": "www.abcd.co"}, {"url": "www.xyz.com" }}}, {"Snom": "justification", "id": "3", "wed": [{"url": "www.abcd.co"}, {"url": "www.xyz. "{{Name}:" Project Management Framework "," Sub 1 ": [{" Snom ":" Project Seminar "," Id ":" 4 "," vid ": [ "Url": "www. "ID": "5", "vid": [{"url": {"url": "www.xyz.com"}}}, {"sname": "Introduction to communication management" ":" Www. "{0}", "{{url} : "Id": "7", "Vid": "{" "{{url"}, {"url": "www.xyz.com"}}}, {"snom": "module" Url ":" www.abcd.co "}, {" url ":" www.xyz.com "}]}]}, {" name ":" cost management "," sub1 ": [{" sname ": "Introduction to cost management", "id": "8", "vid": [{"url": "www.abcd.co"}, {"url": "www" "," id ":" 9 "," Vid ": [{" url ":" www.abcd.co "}, {" Url ":" www.xyz.com "}]}]}]  

  & lt; Div ng-repeat = "test in item_nm" & gt; {{Item_nm.name}} & lt; Div ng- repeat = "sub_dt .sub1" in item_nm & gt; {{Sub1_dt.sname}} & lt; Div ng-repeat = "vid in sub1_dt.vid" & gt; {{Vid.url}} & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; This will display the name and related sname and its url.  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -