Complete "Client Side Routing"
This commit is contained in:
@@ -24,14 +24,16 @@
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/contacts/1">Your Name</a>
|
||||
<NuxtLink :to="{name: 'contacts-contactId', params: {contactId: 1}}">Your Name</NuxtLink>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/contacts/2">Your Friend</a>
|
||||
<NuxtLink :to="{name: 'contacts-contactId', params: {contactId: 2}}">Your Friend</NuxtLink>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<slot/>
|
||||
<div id="detail">
|
||||
<slot/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user