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> <template>
<div> <div>
<p>Hi from {{ name }}</p> <p>Hi from {{ name }}</p>
<NuxtLink to="/"> <n-link to="/">Home page</n-link>
Home page
</NuxtLink>
</div> </div>
</template> </template>

View File

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

View File

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