VueJS: Vue Router Reacting To Route Changes

Paulund is full of premium tutorials and support to help with your development

Sign up to get full access to all tutorials.

Get Started

Login to your account

The the last example we learnt how to create dynamic routes in VueJs. This allows you to have the same component be reused on multiple page, for example if we create a Blog post component that needs to search for the blog information from an API it will something like this. In Vue this component will be loaded once when the route creates the component. The problem is when you navigate to a new URL the component will still be populated with the old blog post . . .

Get Started