Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.17 KB

File metadata and controls

32 lines (20 loc) · 1.17 KB

ember/template-no-this-in-template-only-components

🔧 This rule is automatically fixable by the --fix CLI option.

There is no this context in template-only components.

Examples

This rule forbids this in template-only components:

<h1>Hello {{this.name}}!</h1>

The --fix option will convert to named arguments:

<h1>Hello {{@name}}!</h1>

Migration

References