Nuxt/examples/axios/pages/index.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

18 lines
240 B
Vue

<template>
<div>
<h1>Dog</h1>
<img :src="dog">
</div>
</template>
<script>
export default {
async asyncData ({ app }) {
const { data: { message: dog } } = await app.$axios.get('/dog')
return { dog }
}
}
</script>