angular-smd icon indicating copy to clipboard operation
angular-smd copied to clipboard

datatable doesn't render column data on Angular 4.1.3

Open boomer196 opened this issue 7 years ago • 0 comments

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>

`

}) `

boomer196 avatar Jun 05 '17 00:06 boomer196