From 6cda84ed494afe348d9b2a9769abb28498161cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Tue, 27 Dec 2016 17:06:15 +0100 Subject: [PATCH] Update README.md --- 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 73cc267fd9..d6e372660f 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 ES7 feature +2. Using the ES7 `async` method with `await` 3. Define a second argument which is a callback method to be called like this: `callback(err, data)` Example with returning a `Promise`: