From f4ca19ee73f30566c6a284cba7dbda96ca6a56bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 28 Dec 2016 12:37:50 +0100 Subject: [PATCH] Add post link for async/await --- examples/async-data/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/async-data/README.md b/examples/async-data/README.md index da146f2c9..04772360f 100644 --- a/examples/async-data/README.md +++ b/examples/async-data/README.md @@ -9,7 +9,7 @@ The `data` method receives the context as the first argument, you can use it to fetch some data and return the component data. To make the data method asynchronous, Nuxt.js offers you different ways, choose the one you're the most familiar with: 1. returning a `Promise`, Nuxt.js will wait for the promise to be resolved before rendering the Component -2. Using the [async/await proposal](https://github.com/lukehoban/ecmascript-asyncawait) +2. Using the [async/await proposal](https://github.com/lukehoban/ecmascript-asyncawait) ([learn more about it]([learn more about it](https://zeit.co/blog/async-and-await)) 3. Define a second argument which is a callback method to be called like this: `callback(err, data)` Example with returning a `Promise`: