You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem is that once I'm inside the inner context, I do not know the outer index. $idx gives me the index of inner. Is there a way for me to access the outer index inside the inner context?
Hi, I've got nested arrays such as this one:
"outer" : [
{
"inner": [
{},
{}
]
},
{
"inner": [
{},
{}
]
}
]
I neeed to generate an output like that one:
outer[0].inner[0]
outer[0].inner[1]
outer[1].inner[0]
outer[1].inner[1]
My problem is that once I'm inside the inner context, I do not know the outer index. $idx gives me the index of inner. Is there a way for me to access the outer index inside the inner context?
Template example:
{#outer}
{#inner}
outer[???].inner[{$idx}]
{/inner}
{/outer}
The text was updated successfully, but these errors were encountered: