title: How can I add vue-router link as ag-grid-vue column?
body: <p><a href="https://www.ag-grid.com/best-vuejs-data-grid/" rel="nofollow noreferrer">ag-grid-vue documentation from ag-grid website</a> clearly says:</p>
  
  <blockquote>
    <p>You can provide Vue Router links within the Grid, but you need to
    ensure that you provide a Router to the Grid Component being created.</p>
  </blockquote>
  
  <p>with sample code:</p>
  
  <pre><code>// create a new VueRouter, or make the "root" Router available
  import VueRouter from "vue-router";
  const router = new VueRouter();
  
  // pass a valid Router object to the Vue grid components to be used within the grid
  components: {
      'ag-grid-vue': AgGridVue,
      'link-component': {
          router,
          template: '&lt;router-link to="/master-detail"&gt;Jump to Master/Detail&lt;/router-link&gt;'
      }
  },
  
  // You can now use Vue Router links within you Vue Components within the Grid
  {
      headerName: "Link Example",
      cellRendererFramework: 'link-component',
      width: 200
  }
  </code></pre>
  
  <p>What's missing here is how to make the "root" Router available. I've been looking into various sources and see many people have the same problem, but none got a clear answer.</p>
  
  <p><a href="https://github.com/ag-grid/ag-grid-vue/issues/1" rel="nofollow noreferrer">https://github.com/ag-grid/ag-grid-vue/issues/1</a></p>
  
  <p><a href="https://github.com/ag-grid/ag-grid-vue/issues/23" rel="nofollow noreferrer">https://github.com/ag-grid/ag-grid-vue/issues/23</a></p>
  
  <p><a href="https://github.com/ag-grid/ag-grid-vue-example/issues/3" rel="nofollow noreferrer">https://github.com/ag-grid/ag-grid-vue-example/issues/3</a></p>
  
  <p><a href="https://forum.vuejs.org/t/vue-cant-find-a-simple-inline-component-in-ag-grid-vue/21788/10" rel="nofollow noreferrer">https://forum.vuejs.org/t/vue-cant-find-a-simple-inline-component-in-ag-grid-vue/21788/10</a></p>
  
  <p>Does ag-grid-vue still work with vue-router, then how, or is this just outdated documentation? Some people claim it worked for them so I assume it worked at one point.</p>
  
  <p>I am not looking for cool answer at this point. I just want to know if it is possible. I tried passing router using window or created() and none worked so far.</p>
  
  <p>Thank you!</p>