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
{{ message }}
Repository navigation
Getting the @index / @first / @last from a root context #107
Maybe I'm gettin the syntax wrong, but anyone know if when you're in a nested each loop you can get at the parent's context of @index/first/last in the parent loop?
{{@each}}
Parent index: {{@index}}
{{#each}}
How to get at parent @index?
{{../@index}} ?
{{@root.index}} ?
{{/each}}
Need to figure out why, {{../../@index}} will get you the current parent index. That isn't correct or intuitive, but that's how it seems to work right now.
Activity
rexm commentedon Mar 23, 2016
Need to figure out why,
{{../../@index}}will get you the current parent index. That isn't correct or intuitive, but that's how it seems to work right now.rexm commentedon Mar 25, 2016
How does handlebarsjs work in this situation?
imsedim commentedon May 11, 2016
From here
Fix issue with getting a variable from a parent context
Fix issue with getting a variable from a parent context (#174)
304NotModified commentedon Aug 2, 2019
Isn't this fixed with #174?