want use a cell templates for my dynamic data table in angular 7 like ui grid cell template. kindly anybody help me
cell template:
sampleCellTemplate = `<div>city:{{row[field.address.city]}}</div>
<div>zipcode:{{row[field.address.zipcode]}}</div>`
usage:
<span *ngIf="!field.cellTemplate; else withCellTemplate">
{{row[field.name]}}
</span>
<ng-template #withCellTemplate>
<span [innerHTML]="field.cellTemplate"></span>
</ng-template>
thanks in advance