# ember/template-no-element-event-actions Disallow using element event actions (e.g., `onclick={{action}}`) in templates. Use the `{{on}}` modifier instead. ## Rule Details This rule disallows the use of element event actions in templates. ## Examples Examples of **incorrect** code for this rule: ```gjs ``` ```gjs ``` Examples of **correct** code for this rule: ```gjs ``` ```gjs ``` ## Options | Name | Type | Default | Description | | --------------------- | --------- | ------- | ----------------------------------------------------------------------------------------------------------------- | | `requireActionHelper` | `boolean` | `false` | When `true`, only flags events using `{{action ...}}`; when `false`, flags any dynamic value on event attributes. | ## References - [Ember Octane migration guide](https://guides.emberjs.com/release/upgrading/current-edition/action-on-and-fn/)