Nuxt/packages/vue-app/template/components/nuxt-link.server.js
2019-09-18 17:06:46 +02:00

18 lines
330 B
JavaScript

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