Angular 12 - in depth look into the ViewChild and ViewChildren decorators in Angular 12. We try out the multiple selectors like Components, directives, Services. tokens, templates, template reference variables. Also we look at the static and read options of the ViewChild decorator. We explore the setter/getter option for ViewChild.
We also explore the ViewChildren decorator returning Querylist, how to subscribe to changes to QueryList. Also takes a look at the options of ViewChildren
Github url: https://github.com/anuroopjoy/viewchild-demo
00:00 - Introduction
01:00 - ViewChild selectors
10:15 - ViewChild static option
11:36 - ViewChild read option
12:28 - ViewChild setter/getter
15:20 - ViewChildren
18:08 - ViewChildren Querylist subscribe