in VueJS

VueJS: Vue Router Change Page

Sometimes while you're developing you find situations where you need to redirect to a different page or go back to the last page. For example you could have a form that allows you to delete a record and on a successful delete you're redirected back a page to see the full list of the records. Using the Vue Router object you're able to navigate to any URL or navigate the history of your application, this is done by using the router.push( path ).

router.push( path );

Upgrade to access all content on Paulund

Members unlock all tutorials and snippets

Access to all downloadable content

Access to code examples before others

Sign Up Now

Already a member? Login here

Subscribe To The Weekly Newsletter

Get weekly updates to your email