DEV Community

Discussion on: The Angular @ViewChild decorator

 
korbraan profile image
Cédric Rémond • Edited

Basically yes.
However the CLI will help you as much as it can. The ng upgrade command will, for each ViewChild in your code base, try to detect if it is used statically or dynamically and then add the static parameter itself. If it cannot be determined by the static analysis of the CLI, a TODO comment will be added above each ViewChild to update.

Thread Thread
 
zooly profile image
Hugo Torzuoli

Indeed they handle this case in the upgrade process :) Thanks for explanation!

upgradeViewChild