Skip to content

Commit

Permalink
Update pages.md (#520)
Browse files Browse the repository at this point in the history
The code `this.post = await fetch('https://api.nuxtjs.dev/posts')...` should in fact be `this.posts = await fetch('https://api.nuxtjs.dev/posts')...`
  • Loading branch information
mpandzo committed Aug 16, 2020
1 parent 3335d3b commit 12cab8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/guides/directory-structure/pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Every time you need to get asynchronous data you can use fetch. Fetch is called
}
},
async fetch() {
this.post = await fetch('https://api.nuxtjs.dev/posts').then(res =>
this.posts = await fetch('https://api.nuxtjs.dev/posts').then(res =>
res.json()
)
}
Expand Down

0 comments on commit 12cab8f

Please sign in to comment.