[Vuejs]-Vue Router sub components

0👍

If I understand you correctly, this doesn’t really have much to do with Vue or Vue router as it does simple html.

You can use anchor tags for this (http://www.echoecho.com/htmllinks08.htm):

Simply put, in each components html have something like

<a name="work-one"></a>

Then, when you want to link to that specific component on that page, you can do:

<a href="yoursite.com/your-main-page-link#work-one">Link Text</a>

Or the Vue Router way:

<router-link to="yoursite.com/your-main-page-link#work-one">Link Text</router-link>

Leave a comment