Skip to content

Commit

Permalink
fix: variable in plugins.md and key attribute in components.md (#565)
Browse files Browse the repository at this point in the history
* support Indonesia language - guides\concepts

* The concepts section is finished for Indonesia

* added indonesian documentation: the components-glossary directory

* fix: variable in plugins.md and key attribute in components.md

Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
  • Loading branch information
febrihidayan and debs-obrien committed Aug 25, 2020
1 parent a67f59e commit 01bca5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/en/guides/directory-structure/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Using `$fetchState.pending` we can show a message when the data is waiting to be
<p v-if="$fetchState.pending">Loading....</p>
<p v-else-if="$fetchState.error">Error while fetching mountains</p>
<ul v-else>
<li v-for="(mountain, index) in mountains" :key="index.id">
<li v-for="(mountain, index) in mountains" :key="index">
{{ mountain.title }}
</li>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions content/en/guides/directory-structure/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ Then we can use it directly in your page components:

```js{}[pages/index.vue]
<template>
<h1>{{ title }}</h1>
<h1>{{ post.title }}</h1>
</template>
<script>
export default {
async asyncData ({ $axios, params }) {
const posts = await $axios.$get(`https://api.nuxtjs.dev/posts/${params.id}`)
return { posts }
const post = await $axios.$get(`https://api.nuxtjs.dev/posts/${params.id}`)
return { post }
}
}
</script>
Expand Down

0 comments on commit 01bca5b

Please sign in to comment.