This rule forbids the use of {{action}}
modifiers on elements.
The recommended alternative is the on
modifier. on
is available in Ember 3.11+ and by polyfill for earlier versions.
This rule forbids the following:
This rule allows the following:
The following values are valid configuration:
- boolean --
true
for enabled /false
for disabled - array -- an array of whitelisted element tag names, which will accept action modifiers
- Documentation for template actions
- Polyfill for the
on
modifier (needed below Ember 3.11) - Spec for the
on
modifier - Spec for the
action
modifier