Nuxt/examples/plugins-vendor/pages/about.vue
Sébastien Chopin e7f0200a58 Update examples
2017-02-10 02:22:33 +01:00

25 lines
422 B
Vue

<template>
<div class="container">
<img :src="thumbnailUrl" />
<p><nuxt-link to="/">Home</nuxt-link> - About</p>
</div>
</template>
<script>
import axios from 'axios'
export default {
data () {
return axios.get('https://jsonplaceholder.typicode.com/photos/4').then(res => res.data)
}
}
</script>
<style>
.container {
text-align: center;
padding-top: 100px;
font-family: sans-serif;
}
</style>