Skip to content

Commit 7b16d5d

Browse files
hitautodestructphanan
authored andcommitted
Changed ES7 to ES2016 as per comment (#1839)
* Changed ES7 to ES2016 as per comment Changed the ES7 nickname to ES2016 as per a comment request. Also added `Vue.component` so syntax highlighter will pick up on the code. * Removed line in favour of explicit js indicator as per @phanan suggestion: I removed the `Vue.Component` code line in favour of an explicit js indicator. * Fixed js indicator In previous commit I removed the js indicator from the component.
1 parent ca62f9e commit 7b16d5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/v2/guide/reactivity.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,9 @@ Vue.component('example', {
119119
})
120120
```
121121

122-
Since `$nextTick()` returns a promise, you can achieve the same as the above using the new [ES7 async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) syntax:
122+
Since `$nextTick()` returns a promise, you can achieve the same as the above using the new [ES2016 async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) syntax:
123123

124-
```
125-
...
124+
``` js
126125
methods: {
127126
async updateMessage: function () {
128127
this.message = 'updated'
@@ -131,5 +130,4 @@ Since `$nextTick()` returns a promise, you can achieve the same as the above usi
131130
console.log(this.$el.textContent) // => 'updated'
132131
}
133132
}
134-
...
135133
```

0 commit comments

Comments
 (0)