Category · 6 articles

Router

Articles in the category Router.

Vue Tip: Simple Routing Without Using External Libraries Image

Vue Tip: Simple Routing Without Using External Libraries

If you want to keep things simple and avoid adding extra dependencies, you can implement basic routing functionality in Vue.js without using external libraries like Vue Router.
Vue Tip: Re-Rendering Vue Routes When Path Parameters Change Image

Vue Tip: Re-Rendering Vue Routes When Path Parameters Change

In SPA that uses the Vue Router, it’s common to create a path parameter that changes the behavior of a route.
Vue Tip: Dynamically Change Page Title Image

Vue Tip: Dynamically Change Page Title

I will show you a few ways how you can easily change the page title when navigating your application
Vue Tip: Dynamically Add & Remove Route While App Is Running Image

Vue Tip: Dynamically Add & Remove Route While App Is Running

Adding routes to your router is usually done via the `routes` option, but in some situations, you might want to add or remove routes while the application is already running.
Vue Tip: Animate Child Component Before Route Leave Image

Vue Tip: Animate Child Component Before Route Leave

Vue Router provides a way to use transitions on route components and animate the navigations. But sometimes, you might want to animate a specific (sub-)component before a route is left.
Vue Tip: Scroll to Top When Navigating to a New Route Image

Vue Tip: Scroll to Top When Navigating to a New Route

When using client-side routing, we may want to scroll to top when navigating to a new route, or preserve the scrolling position of history entries just like real page reload does.