We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7465c1 commit 07a22a9Copy full SHA for 07a22a9
1 file changed
tests/lib/rules/template-no-unused-block-params.js
@@ -11,6 +11,21 @@ const validHbs = [
11
'{{#each cats as |cat|}}{{meow cat}}{{/each}}',
12
'{{#each cats as |cat index|}}{{index}}{{/each}}',
13
'{{#each cats as |cat index|}}{{#each cat.lives as |life|}}{{index}}: {{life}}{{/each}}{{/each}}',
14
+ `
15
+ {{#each cats as |cat|}}
16
+ <div data-cat-name={{cat.name}}></div>
17
+ {{/each}}
18
+ `,
19
20
21
+ <div class="cat {{cat.name}}"></div>
22
23
24
25
26
+ <div class="cat {{if (isFavorite cat.name favoriteCatNames) 'favorite'}}"></div>
27
28
29
`
30
<MyComponent @model={{this.model}} as |param|>
31
{{! template-lint-disable }}
0 commit comments