Nuxt/examples/async-component-injection/pages/index.vue

31 lines
717 B
Vue
Raw Normal View History

2017-07-10 11:52:10 +00:00
<template>
<ul>
<li v-for="(post, index) in posts" :key="index">
<h3>{{ post.date }}</h3>
<h2>
<NuxtLink :to="post.link">
{{ post.title }}
</NuxtLink>
</h2>
</li>
<li style="border:none;text-align: center;font-size: 14px;">
Design from <a href="http://blog.evanyou.me" target="_blank">
EvanYou.me
</a>
2017-07-10 11:52:10 +00:00
</li>
</ul>
</template>
<script>
export default {
data: () => ({
posts: [
{ date: 'Jul 10, 2017', title: 'Deep dive into the Ocean', link: '/deep-dive-into-ocean' },
{ date: 'Jul 08, 2017', title: 'Welcome to my blog', link: '/welcome-to-my-blog' }
]
})
}
</script>
2022-09-03 12:46:48 +00:00
<style src="@/assets/css/index.css" />