Template columns are not updating
KG3RK3N opened this issue · comments
I have a problem, that columns defined by template are not updating.
<gui-grid [source]="source">
<ng-container *ngFor="let column of columns">
<gui-grid-column [header]="column.header" [field]="column.field">
<ng-template let-value="value">
{{value}}
</ng-template>
</gui-grid-column>
</ng-container>
</gui-grid>
On first start, its working. But if i change the variable columns
, the grid don't update the internal config.
I've created a sample to reproduce the issue. To change the columns, you can click on the toggle button.
https://stackblitz.com/edit/angular-grid-quick-start-ue5cft?file=src/app/app.component.ts