I am using ag-grid with vue.js. I want link a component from a cell of the main table grid. Unfortunately it doen't work using vue.js router-link. This is my current column definition where I use the a href instead. The major problem with this approach is that it reloads all the app instead of the specific view.
this.columnDefs = [
{headerName: 'Job', field: 'job_id', sortable: true, filter: true},
{headerName: 'Link', field: '_id',
cellRenderer: function(params) {
return `<a href="/jobsList?job_id=${params.data.job_id}">Lista Records</a>`;
}
}
];
The problem is when i try to use the vue.js router-link:
cellRenderer: function(params) {
return `<router-link to="/jobsList?job_id=${params.data.job_id}">Lista Records</router-link>`;
}
How can I make it work using the vue.js router-link?