diff --git a/examples/async-data/README.md b/examples/async-data/README.md index 66f79ca3fa..f76d4b3d51 100644 --- a/examples/async-data/README.md +++ b/examples/async-data/README.md @@ -7,6 +7,7 @@ `data` is called every time before loading the component (*only if attached to a route*). It can be called from the server-side or before navigating to the corresponding route. 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 2 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. Define a second argument which is a callback method to be called like this: `callback(err, data)`