How to Render an Angular routerLink inside the cell of an ag-Grid?
I think cellRenderer
only supports normal HTML (without any angular-specific stuff).
You want to use cellRendererFramework
as seen in these examples:
- https://www.ag-grid.com/ag-grid-angular2-support/
- https://www.ag-grid.com/javascript-grid-cell-rendering-components/#example-rendering-using-more-complex-angular-components
Since you use RouterLink, you probably need RouterModule
in the moduleImports