mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
feat(vue-app): <n-link> and <n-child> component aliases (#4525)
This commit is contained in:
parent
8a200f7e91
commit
15051978f0
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user