Nuxt/examples/markdownit/pages/index.vue

22 lines
308 B
Vue
Raw Normal View History

2017-10-27 16:20:12 +00:00
<template lang="md">
# Hello World!
Current route is: {{ $route.path }}
Data model is: {{ model }}
<NuxtLink to="/about">Goto About</NuxtLink>
2017-10-27 16:38:47 +00:00
<NuxtLink to="/pug">Goto Pug</NuxtLink>
2017-10-27 16:20:12 +00:00
</template>
2017-10-27 16:38:47 +00:00
<script>
2017-10-27 16:20:12 +00:00
export default {
2017-10-31 13:43:55 +00:00
data() {
2017-10-27 16:20:12 +00:00
return {
2017-10-27 16:38:47 +00:00
model: 'I am index'
2017-10-27 16:20:12 +00:00
}
}
}
</script>