Update README

This commit is contained in:
Sébastien Chopin 2016-11-08 01:07:04 +01:00
parent 1bd8a63f9e
commit 37341ee4ef
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# Async data with Nuxt.js
## data(context)
## data (context)
> Nuxt.js *supercharges* the `data` method from vue.js to let you handle async operation before setting the real component data.

View File

@ -50,7 +50,7 @@ You're ready to use `this.$store` inside your `.vue` files :)
</template>
```
## fetch(context)
## fetch (context)
> Used to fill the store before rendering the page
@ -69,3 +69,7 @@ export default {
}
}
```
## Context
To see the list of available keys in `context`, take a look at [this documentation](https://github.com/Atinux/nuxt.js/tree/master/examples/async-data#context).