Is mandatory to pass static flag for ViewChild?
In Angular 8, the static flag is required for ViewChild. Whereas in Angular9, you no longer need to pass this property. Once you updated to Angular9 using ng update
, the migration will remove { static: false }
script everywhere.
@ViewChild(ChildDirective) child: ChildDirective; // Angular9 usage@ViewChild(ChildDirective, { static: false }) child: ChildDirective; //Angular8 usage
July 03, 2022
203
Read more
What is Angular Framework?
November 04, 2022
AngularWhat is a Angular module?
November 03, 2022
AngularWhat are the steps to use animation module?
October 31, 2022
Angular