[Vuejs]-Using router-link in single File Component

0👍

Move this code to main.js where new Vue constructor is defined

Vue.component("newtemplate", {
  template: "<template><div><button>hello</button></div></template>"
});

And configure your router for first template and second template

Leave a comment