mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 15:42:09 +00:00
Update README
This commit is contained in:
parent
1bd8a63f9e
commit
37341ee4ef
@ -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.
|
||||
|
||||
|
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user