conditional footer is not working anymore
See original GitHub issueI’m submitting a …
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior When i add a ngx-datatable-footer in my ngx-datatable, i can see the footer properly displayed. When i make the ngx-datatable-footer conditional with *ngIf, the footer never get displayed even when condition is true. This problem seems related to Angular 8 with the static ViewChild/ContentChild update.
Expected behavior The footer should display.
Reproduction of the problem
See stackblitz example
With *ngIf="true"
it does not display the custom footer. Remove *ngIf="true"
to make the custom footer appear.
What is the motivation / use case for changing the behavior? I want to display the footer when a condition is matched
Please tell us about your environment: Win10, Angular8
-
Table version: 15.0.0
-
Angular version: 8.0.0
-
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] all
-
Language: [all | TypeScript X.X | ES6/7 | ES5] all
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:19 (5 by maintainers)
Top GitHub Comments
released 15.0.1
@daresais I am looking at that now. The issue is with the new
static
property that we had to add to all ContentChild and ViewChild directives.Hi there, I understand that this issue is closed, but I seem to be facing another issue that is related to this issue after updating ngx-datatable to version 15.0.2. If I do something like this, the custom stylings/pipes applied within
ng-template
will not be applied.My workaround to solve the above issue would be the following:
I am currently using Angular version 8.0.1, and my ngx-datatable is of version 15.0.2.