Accessing variables of the parent loop from nested loop

1
+1
-1

Hi. I have two containers in the form, one inside the other (parent and child) and I need show information in the child container that depend the parent.
For example i need show "banana" in container of "producingCountries" and show "apple" in other container of "producingCountries"
[
{
"fruit":"banana",
"producingCountries":
["India","China"]
},
{
"fruit":"apple",
"producingCountries":
["China","USA"]
}
]

No answers yet.
Notifications