I am working with an object structured like this:
Obj = {
"elements":[
{"name":"something","id":"v1-234"},
{"name":"somethingElse","id":"v1-239"}
],
"paging":{
"next" : "100",
"total": "2000"
},
"linked"={
"partners":[
{"id":"82","name":"A"},
{"id":"83","name":"B"}
],
"instructors":
[
{"id":"11232","name":"alex"},
{"id":"11432","name":"boob"}
]
}
}
The elements array, as well as the partners and instructors arrays within the linked object, contain an equal number of items. I have only included 2 items for demonstration purposes, but there could be more.
In this structure, Obj.elements[0] corresponds to Obj.linked.partners[0] and Obj.linked.instructors[0]. This pattern continues for all items in the arrays.
I am wondering how I can use ng-repeat to display
Obj.elements[i], Obj.linked.partners[i], and Obj.linked.instructors[i]
simultaneously in the HTML template?