In this video, we'll look at two property decorators that allow a component class to access the template contents of the component in which they're used.
These decorators are called ViewChild and ViewChildren.
Support me on Boosty:
https://boosty.to/yuri_simonov
Timings:
00:00 Introduction
01:00 ViewChild
09:15 The static parameter
10:54 The read parameter
12:47 ViewChildren
15:13 Multiselectors
15:50 Summary
Links to official documentation for the materials covered in the lesson:
ElementRef: https://angular.io/api/core/ElementRef
TemplateRef: https://angular.io/api/core/TemplateRef
ViewChild: https://angular.io/api/core/ViewChild
ViewChildren: https://angular.io/api/core/ViewChildren
QueryList: https://angular.io/api/core/QueryList
The code from the lesson can be found in the GitHub repository In the corresponding commit:
https://github.com/Yuri-Simonov/My-An...
Link to the playlist for this Angular course:
• Angular курс для начинающих | Angular уроки
My IT Telegram channel:
https://t.me/yuri_simonov_it
Link to the Helper project:
https://yuri-simonov.github.io/Helper/
Helper project chat:
https://t.me/yuri_simonov_helper