I have multiple JSON files:
main.json:
{
"MainRegister": [
{
"name": "Name1",
"url": "url1.json",
},
{
"name": "Name2",
"url": "url2.json",
},
]
}
url1.json
{
"SubInformation": {
"description": "Hello World 1",
"identifier": "id1",
}
}
url2.json
{
"SubInformation": {
"description": "Hello World 2",
"identifier": "id2",
}
}
Now I want to create a ng-repeat div in my index.html such that it loads all the fields from the files, moreover I want to display the following output:
- Name1: Hello World 1 (id1)
- Name2: Hello World 2 (id2)
How can I bind these files in a ng-repeat way? Or is there another way?