Skip to content

datatable doesn't render column data on Angular 4.1.3 #7

@boomer196

Description

@boomer196

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>

`

})
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions