angular-smd
angular-smd copied to clipboard
datatable doesn't render column data on Angular 4.1.3
Not sure why, but using angular 4.1.3 the column data doesn't render using internal template. It works on 2.4.2. I was able to work around by removing the *ngIf, but thought I would let you know. Another possible workaround is to define your own template (it works using _customTemplate). ` @Component({
selector: "smd-datatable-column",
template: `
<ng-template #internalTemplate *ngIf="!_template" let-model="data">
{{getFieldValue(model)}}
</ng-template>
<ng-content select="template"></ng-content>
`
})
Modified the template
@Component({
selector: "smd-datatable-column",
template: `
<ng-template #internalTemplate let-model="data">
{{getFieldValue(model)}}
</ng-template>
<ng-content select="template"></ng-content>
`
}) `