KingsleyO
2 months ago
218
1
Vue

How to replace a component to other components using vue router

Posted 2 months ago by KingsleyO

I am very new to vue js so my question might seem very basic. What i am trying to do is have one component on display and then remove that component and display others based on the link that is clicked

So i have some like

<router-view></router-view>

Which displays nothing until a link is clicked. But i want to have a dashboard component <dashboard></dashboard> in place when the page is loaded and then replaced it with any other component of the link clicked.

Please sign in or create an account to participate in this conversation.