# ember/template-no-chained-this
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
Disallow redundant `this.this` in templates.
Using `this.this.*` in templates is almost always a typo or copy/paste mistake. These patterns are misleading and result in unnecessary ambiguity about scope and component context.
## Rule Details
This rule disallows `this.this.*` patterns in templates (e.g., `{{this.this.foo}}` or ``).
## Examples
### Incorrect ❌
```gjs
{{this.this.value}}
```
```gjs
{{#this.this.foo}}
some text
{{/this.this.foo}}
```
```gjs
{{helper value=this.this.foo}}
```
```gjs
```
```gjs
{{component this.this.dynamicComponent}}
```
### Correct ✅
```gjs
{{this.value}}
```
```gjs
```
```gjs
{{component this.dynamicComponent}}
```
```gjs
{{@argName}}
```
## Migration
Remove the extra `this`:
Before:
```gjs
{{this.this.foo}}
```
After:
```gjs
{{this.foo}}
```
## References
- [Ember Guides - Glimmer Component Templates](https://guides.emberjs.com/release/upgrading/current-edition/glimmer-components/)
- [Handlebars Strict Mode](https://github.com/emberjs/rfcs/blob/master/text/0496-handlebars-strict-mode.md)