<p-column field="boreNumber" [hidden]="selBoreID" header="Bore ID"
[sortable]="true" [filter]="false" filterMatchMode="contains"
filterPlaceholder="Search bore number">
<ng-template let-col let-bore="rowData" pTemplate="body">
<button type="button" class="btn btn-link" (click)="showDetails(site.siteId)">{{bore[col.field]}}</button>
</ng-template>
</p-column>
<p-column field="site.siteNumber" header="Site Number" [filter]="false" filterMatchMode="contains" [sortable]="true" filterPlaceholder="Search site number">
<ng-template let-col let-bore="rowData" pTemplate="body">
<button type="button" class="btn btn-link" (click)="showDetails(site.siteId)">{{bore[col.field]}}</button> </ng-template>
</p-column>
在我的第二栏中,ng-template无效,我的第二列又是一个对象