Nuxt/examples/markdownit/pages/index.vue

22 lines
312 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 }}
<nuxt-link to="/about">Goto About</nuxt-link>
2017-10-27 16:38:47 +00:00
<nuxt-link to="/pug">Goto Pug</nuxt-link>
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>