File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Default is set to `never`.
38
38
</template >
39
39
```
40
40
41
- :-1 : Examples of ** incorrect** code` :
41
+ :-1 : Examples of ** incorrect** code:
42
42
43
43
``` html
44
44
<template >
@@ -50,22 +50,22 @@ Default is set to `never`.
50
50
51
51
### ` "never" ` - Never use expresions that contain ` this ` keyword in expressions
52
52
53
- :+1 : Examples of ** correct** code` :
53
+ :+1 : Examples of ** correct** code:
54
54
55
55
``` html
56
56
<template >
57
- <div :class =" {'show': this. showFoo}" >
58
- {{ this. foo }}
57
+ <div :class =" {'show': showFoo}" >
58
+ {{ foo }}
59
59
</div >
60
60
</template >
61
61
```
62
62
63
- :-1 : Examples of ** incorrect** code` :
63
+ :-1 : Examples of ** incorrect** code:
64
64
65
65
``` html
66
66
<template >
67
- <div :class =" {'show': showFoo}" >
68
- {{ foo }}
67
+ <div :class =" {'show': this. showFoo}" >
68
+ {{ this. foo }}
69
69
</div >
70
70
</template >
71
71
```
You can’t perform that action at this time.
0 commit comments