Skip to content

Conversation

@potato4d
Copy link
Collaborator

@potato4d potato4d commented Oct 9, 2018

resolve #1268

#1266 にて追加された変更を翻訳しました。

@potato4d potato4d self-assigned this Oct 9, 2018
@potato4d potato4d requested a review from re-fort October 9, 2018 01:10
@potato4d
Copy link
Collaborator Author

potato4d commented Oct 9, 2018

@re-fort 見ていただけると〜

Copy link
Collaborator

@re-fort re-fort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントしました!

```

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:
`$nextTick()` は Promise を返却するため、新しい [ES7 async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) 構文を用いて、同じことができます:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

リンクをこちらに差し替えいただきたいです:pray:
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Statements/async_function
これlintの内容にいれたいんですが、日本語docが必ずあるわけじゃないからlint errorにはできないのが悩ましいんですよねー

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@re-fort ありがとうございます!差し替えます!

@potato4d
Copy link
Collaborator Author

@re-fort こちら対応しました!

Copy link
Collaborator

@re-fort re-fort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMです:sparkles:

@potato4d potato4d merged commit 62f6004 into vuejs:lang-ja Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translate "Added example of using $nextTick with async await"

2 participants