Skip to content

Commit 1c827b3

Browse files
privatenumbermysticatea
authored andcommitted
Docs: correct example code in this-in-template (#178)
1 parent e59b19e commit 1c827b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/rules/this-in-template.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Default is set to `never`.
3838
</template>
3939
```
4040

41-
:-1: Examples of **incorrect** code`:
41+
:-1: Examples of **incorrect** code:
4242

4343
```html
4444
<template>
@@ -50,22 +50,22 @@ Default is set to `never`.
5050

5151
### `"never"` - Never use expresions that contain `this` keyword in expressions
5252

53-
:+1: Examples of **correct** code`:
53+
:+1: Examples of **correct** code:
5454

5555
```html
5656
<template>
57-
<div :class="{'show': this.showFoo}">
58-
{{ this.foo }}
57+
<div :class="{'show': showFoo}">
58+
{{ foo }}
5959
</div>
6060
</template>
6161
```
6262

63-
:-1: Examples of **incorrect** code`:
63+
:-1: Examples of **incorrect** code:
6464

6565
```html
6666
<template>
67-
<div :class="{'show': showFoo}">
68-
{{ foo }}
67+
<div :class="{'show': this.showFoo}">
68+
{{ this.foo }}
6969
</div>
7070
</template>
7171
```

0 commit comments

Comments
 (0)