Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 590 Bytes

no-attrs-in-components.md

File metadata and controls

29 lines (18 loc) · 590 Bytes

no-attrs-in-components

✅ The extends: 'recommended' property in a configuration file enables this rule.

This rule prevents the usage of attrs property to access values passed to the component since all the values can be accessed directly from the template.

Examples

This rule forbids the following:

{{attr.foo}}

This rule allows the following:

{{foo}}

or if you using Ember 3.1 and above:

{{@foo}}

References