Prabhu Maniraj
Prabhu Maniraj

Reputation: 39

How to add anchor tag to ngx-datatable-column

I need to load data from server and load the ngx-datatable. On click on a particular column (link<a href="randomurl"/> or [routerLink]="randomcomponent"), it should redirect to different page or it should show a modal window.

I am new to Angular 2 +

Upvotes: 2

Views: 2327

Answers (1)

Prabhu Maniraj
Prabhu Maniraj

Reputation: 39

It worked, I used ng-template to accomplish it.

Reference: https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/row-detail.component.ts

Upvotes: 1

Related Questions