vue.js router link code example
Example 1: vue router link
<router-link to="/home">Home</router-link>
Example 2: vue router push
//Syntax - this.$router.push(path);
this.$router.push("/path");
Example 3: add router to vue
vue add router # Vue CLI
Example 4: vue js get routes
this.$router.options.routes