deprecated-each-syntax.md
January 4, 2019 ยท View on GitHub
deprecated-each-syntax
In Ember 2.0, support for using the in form of the {{#each}} helper
has been removed.
This rule forbids the following:
{{#each post in posts}}
<li>{{post.name}}</li>
{{/each}}
This rule allows the following:
{{#each posts as |post|}}
<li>{{post.name}}</li>
{{/each}}
References
- More information is available at the Deprecation Guide.