# ember/template-no-inline-event-handlers
Disallows DOM event handler attributes in templates.
Inline event handlers like `onclick="..."` are an older pattern that should be replaced with the `{{on}}` modifier for better Ember integration and testability.
## Rule Details
This rule disallows the use of inline DOM event handler attributes like `onclick`, `onsubmit`, etc.
## Examples
Examples of **incorrect** code for this rule:
```gjs
```
```gjs
Content
```
```gjs
```
Examples of **correct** code for this rule:
```gjs
```
```gjs
```
```gjs
```
## Migration
Replace:
```gjs