Nuxt/packages/vue-app/template/components/nuxt-link.server.js

18 lines
330 B
JavaScript
Raw Normal View History

import Vue from 'vue'
2019-01-06 07:56:59 +00:00
<%= isTest ? '// @vue/component' : '' %>
export default {
name: 'NuxtLink',
2019-01-06 07:56:59 +00:00
extends: Vue.component('RouterLink'),
props: {
prefetch: {
type: Boolean,
default: <%= router.prefetchLinks ? 'true' : 'false' %>
},
noPrefetch: {
type: Boolean,
default: false
}
}
}