ViewChild and ContentChild are decorators to configure queries on the component’s template. They can be used for various purposes, such as querying the child component or projected contents. A better understanding of these two decorators and their corresponding life cycle hooks empowers developers to write robust Angular applications.
In a step-by-step approach with live coding, this talk explains.
1. Difference between ViewChild and ContentChild decorators
2. Various input parameters to define a ViewChild such as {static: true}
3. ngAftterViewInit and ngAfterContentInit life cycle hooks
4. Content projection to simplify ContentChild
5. Various types of ViewChild
a. ElementRef
b. ViewContainerRef
Attend this talk to master ViewChild and ContentChild to write reusable components and robust Angular applications.
Creator of Remult, remult.dev | Israel
Principal Security Engineer , Okta | Poland
Developer Relations Engineer, Storyblok | Germany
Chief Technology Officer, Builder.io | USA
Developer Advocate, Weaviate | France
Software Engineer, Digital Hub Warsaw, Bayer | Poland
CEO, push-based.io | Austria
Independent Consultant, Architect, Developer & Trainer, Poland
Frontend Software Engineer, Tech a Hike | Israel
Development Manager, BEC | Poland
Software Development Cook, Teacher & Coach, GDE | France
Project Lead Developer, Irish Life Health | Poland
DevRel, Kinsta | Poland
Technology Evangelist, Divante | Poland
Senior DevOps Engineer, Wix.com | Israel
Senior Software Engineer, G-Group.dev | Poland
Founder, Nauč mě IT | Germany
Front End Tech Lead, Tikal | Israel
Principal UI Architect, Cisco | Canada
Developer Evangelist for Web and Cloud, UK
GDE, Trainer, Senior Software Engineer, Push-Based.io | Albania
Google Developer Expert, Austria
Software Engineering Team Leader, EPAM | Poland
Front End Consultant and Trainer, Poland
Trainer & Consultant, AngularArchitects.io | Austria
Frontend Angular Developer, BEC | Poland
Teacher and Consultant, ngIndia | India
Independent IT Consultant, owner of 13DSGN.COM, Poland
Google Developer Expert, CodeShotsWithProfanis | Greece
Software Engineering Team Leader, EPAM | Spain
Lead Software Engineer, Digital Hub Warsaw, Bayer | Poland
Senior Developer, Vue Storefront | Poland
Consultant and Author, softwarearchitekt.at | Austria
Sign up to receive updates about JS Poland, including workshops, speaker previews, ticket launches, JS Awards, JavaScript Master Podcast, Behind the Code Magazine, CFP details and other exclusive content. We won’t spam you and will only send you emails we genuinely think you’ll find interesting. You can unsubscribe at any time and you can find more information here.