title: using router-link in single File Component
body: <p>i am stuck in router in my single file component, i am trying to include another component in single file component like i have named thirdtemplate.vue as my SFC and i include another component in it using Vue.component(“newTemplate”,{template:"…"}) as i have shown the example downwards in this post.i need to use router-link in my newTemplate component so that it calls the template of component newTemplate.</p>
  
  <pre><code>&lt;template&gt;
    &lt;div&gt;
      &lt;h4&gt;hello this is from thirdTemplate&lt;/h4&gt;
      &lt;router-link to="/secondTemplate"&gt;Go to secondTemplate&lt;/router-link&gt;
      &lt;router-link to="/thirdTemplate"&gt;Go to thirdTemplate&lt;/router-link&gt;
      &lt;newtemplate&gt;&lt;/newtemplate&gt;
    &lt;/div&gt;
  &lt;/template&gt;
  &lt;script&gt;
  Vue.component("newtemplate", {
    template: "&lt;template&gt;&lt;div&gt;&lt;button&gt;hello&lt;/button&gt;&lt;/div&gt;&lt;/template&gt;"
  });
  
  module.exports = {
    name: "thirdTemplate",
    methods: {},
    components: {}
  };
  &lt;/script&gt;
  </code></pre>