feat(vue-app): <n-link> and <n-child> component aliases (#4525)

This commit is contained in:
Sébastien Chopin 2018-12-11 18:07:04 +01:00 committed by Pooya Parsa
parent 8a200f7e91
commit 15051978f0
3 changed files with 4 additions and 6 deletions

View File

@ -1,9 +1,7 @@
<template>
<div>
<p>Hi from {{ name }}</p>
<NuxtLink to="/">
Home page
</NuxtLink>
<n-link to="/">Home page</n-link>
</div>
</template>

View File

@ -1,9 +1,7 @@
<template>
<div>
<h1>Welcome!</h1>
<NuxtLink to="/about">
About page
</NuxtLink>
<n-link to="/about">About Page</n-link>
</div>
</template>

View File

@ -21,9 +21,11 @@ Vue.component(NoSsr.name, NoSsr)
// Component: <NuxtChild>
Vue.component(NuxtChild.name, NuxtChild)
Vue.component('NChild', NuxtChild)
// Component: <NuxtLink
Vue.component(NuxtLink.name, NuxtLink)
Vue.component('NLink', NuxtLink)
// Component: <Nuxt>`
Vue.component(Nuxt.name, Nuxt)