Skip to content

Getting the @index / @first / @last from a root context #107

@breenyoung

Description

@breenyoung

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}}

{{/each}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions