Skip to content

Use of as || in with #1042

@agladysh

Description

@agladysh

I'd like to create an alias to outer this in my template.

{{#with this as |foo|}
  {{#each bar}}
    Foo: {{foo.baz}} 
    bar: {{bar}}
  {{/each}}
{{/with}

But the code above doesn't work... What am I doing wrong? Is each the only standard template that supports the as || feature?

Fiddle: http://jsfiddle.net/xmeq3x76/1/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions