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.
Independent Consultant, Architect, Developer & Trainer, Poland
Security Expert, Founder, GDE, Pragmatic Web Security | Belgium
Senior JavaScript Developer, Atos | Poland
Engineering Manager & Frontend SME, eBay | Netherlands
Nuxt Core Team, Leetchi | France
Front End Developer, GDE, Microsoft MVP , CAIS | UK
Tech Lead, Full-stack AI Engineer, GDE, Tikal | Israel
Front-end developer, Conscensia | Poland
Staff Engineer, Mapbox | USA
Senior Software Engineer / Power Grid Gdańsk R&D Manager, Volue/Bottega IT Minds | Poland
Senior Software Developer, Atlantis S.R.L. | Italy
Angular / .NET Developer / Team Lead, Conscensia | Poland
GDE for Angular, softwarearchitekt.at | Austria
Senior Fullstack Developer & Advocate, GDE, Monterail | Poland
Back End Developer, Podme | Sweden
Managing Delivery Architect, Capgemini | Poland
Senior Staff Engineer, GDE, SFEIR | Luxembourg
Principal Engineer, Google Developers Expert, Jumbo Supermarkten | Netherlands
GDE, Expert Web Consultant, Trainer, Mentor, Angular Training | France
Trainer & Consultant, AngularArchitects.io | Austria
Senior Software Engineer, Snowflake | Canada
Passionate Angular Developer, Angular Architects | Austria
Software Development Cook, Teacher & Coach, GDE | France
Software-Architekt, Thinktecture AG | Germany
Trainer and Consultant, AngularArchitects.io | Austria
Google Developer Expert, Author, Podcaster, NG/JS/AI POLAND | Poland
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.