Skip to content

Commit

Permalink
Docs: correct example code in this-in-template (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber authored and mysticatea committed Sep 7, 2017
1 parent e59b19e commit 1c827b3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/rules/this-in-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Default is set to `never`.
</template>
```

:-1: Examples of **incorrect** code`:
:-1: Examples of **incorrect** code:

```html
<template>
Expand All @@ -50,22 +50,22 @@ Default is set to `never`.

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

:+1: Examples of **correct** code`:
:+1: Examples of **correct** code:

```html
<template>
<div :class="{'show': this.showFoo}">
{{ this.foo }}
<div :class="{'show': showFoo}">
{{ foo }}
</div>
</template>
```

:-1: Examples of **incorrect** code`:
:-1: Examples of **incorrect** code:

```html
<template>
<div :class="{'show': showFoo}">
{{ foo }}
<div :class="{'show': this.showFoo}">
{{ this.foo }}
</div>
</template>
```

0 comments on commit 1c827b3

Please sign in to comment.