Well here is my JSON
{ "questions" : {
"Question 1" : [
{ "Q" :"Question" },
{ "A" : "Answer A" },
{ "B" : "Answer B" },
{ "C" : "Answer C" },
{ "D" : "Answer D" },
{ "Answer" : "C" }
],
"Question 2" : [
{ "Q" :"Question" },
{ "A" : "Answer A" },
{ "B" : "Answer B" },
{ "C" : "Answer C" },
{ "D" : "Answer D" },
{ "Answer" : "C" }
] ,
"Question 3":{
"x":"qwerty",
"y":"postdata" }
}}
what I want to do is first display the names "Question 1", "Question "2 etc .. as links which is pretty easy to do with the help of
<div ng-repeat="(key,val) in questions" ><a href="#" > {{key}}</a> </div>
now based on the user click on those links ,i have to display the all details inside the array. please suggest how to do it . Thanks in advance .