Nuxt/examples/plugins-vendor/pages/about.vue

25 lines
425 B
Vue
Raw Normal View History

2016-11-08 01:57:55 +00:00
<template>
2016-11-08 02:48:18 +00:00
<div class="container">
2016-11-08 01:57:55 +00:00
<img :src="thumbnailUrl" />
<p><router-link to="/">Home</router-link> - About</p>
</div>
</template>
<script>
import axios from 'axios'
export default {
data () {
2016-11-08 02:48:18 +00:00
return axios.get('http://jsonplaceholder.typicode.com/photos/4').then(res => res.data)
2016-11-08 01:57:55 +00:00
}
}
</script>
2016-11-08 02:48:18 +00:00
<style>
.container {
text-align: center;
padding-top: 100px;
font-family: sans-serif;
}
</style>