When using vue-router, it is also possible to change the current route of the application through function execution, without the need for special vue-router components for creating links.
Using programmatic navigation, you can make sure all the route redirections can be executed anywhere in your code. Using this method enables the usage of special route directions, such as passing parameters and navigation with the route name.
In this recipe, we will learn how to execute a programmatic navigation function, using the extra possibilities it provides.