- ⚙️ This rule is included in
"plugin:vue/recommended"
.
👎 Examples of incorrect code for this rule:
<a :href="this.url">
{{ this.text }}
</a>
👍 Examples of correct code for this rule:
<a :href="url">
{{ text }}
</a>
Default is set to never
.
'vue/this-in-template': [2, 'always'|'never']
👎 Examples of incorrect code:
<a :href="url">
{{ text }}
</a>
👍 Examples of correct code`:
<a :href="this.url">
{{ this.text }}
</a>
👎 Examples of incorrect code:
<a :href="this.url">
{{ this.text }}
</a>
👍 Examples of correct code:
<a :href="url">
{{ text }}
</a>