How to bind to data-* attribute in angular2? [duplicate]

This should do what you want

[attr.data-row]="row.index" [attr.data-col]="cell.index"

Leave a Comment