So, I am using DataTable to show some data, and initializing it on the app.ts file like this;
this.dataTable = $('#dataTable').DataTable({
columns:[
{
data: 'Date',
render: (data, type, row) => {
return `
<div class="row">
<div class="col-12"><span data-toggle="tooltip" title="Date Of Closure"><fa-icon [icon]="['fas','clock']"></fa-icon></span></div>
</div>
`
}
}
]
});
But this way, the fa-icon does not get rendered on the front-end. It just shows like this on the dom;
<fa-icon [icon]="['fas','comment']"></fa-icon>
How can I programmatically add this icon to my table-cell?