Nebular: Fix @ViewChild/@ContentChild static: true to be false and and related functionality

Created on 28 May 2019  路  1Comment  路  Source: akveo/nebular

As of 8.0.0 Angular adds a required property to all @ViewCihld @ContentChild calls. Till 9.0.0 it could either be false (default and expected) and true. This is an intermediate solution and all calls should be false till 9.0.0. Related functionality should be fixed to address this logic. Details https://next.angular.io/guide/static-query-migration.
In tests we should prefer debugElement over @ViewChild.

enhancement components

Most helpful comment

@nnixaa more specifically if the element needs to be available during ngOnInit, then static needs to be true, but if it can wait until after the init it can be false, which means it won't be available until ngAfterViewInit.

>All comments

@nnixaa more specifically if the element needs to be available during ngOnInit, then static needs to be true, but if it can wait until after the init it can be false, which means it won't be available until ngAfterViewInit.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

obarazan picture obarazan  路  3Comments

nnixaa picture nnixaa  路  4Comments

andredatsch picture andredatsch  路  3Comments

rhajizadeh picture rhajizadeh  路  3Comments

mmezian picture mmezian  路  3Comments