Render column in Data table with routerLink

Viewed 3158

In DataTable implementation,is it possible for me use routerLink here instead of href , routerLink renders a link but doesnt navigate to the page.

 render: (data: any, type: any, row: any, meta) => {
                return `
                    <a href="/store' + row.id + '/'+ storeid +'" title="View">
                        <i class="fa fa-file-text-o"></i>
                    </a>
                `;                
        }

How to implement this the Angular 2/4 way ?

2 Answers
Related