Dhananjay Kumar

JavaScript Conference 2023 (Warsaw & Online)
Learn from the Best
Meet Dhananjay Kumar

Dhananjay Kumar

ViewChild or Contentchild? What to use!

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.

Dhananjay Kumar - Teacher and Consultant, ngIndia | India

Dhananjay Kumar is a Consultant and Trainer from India and organizer of one of the world's largest Angular conferences, ng-India.

He is a published Book Author, International Speaker, and Founder of , which provides full enterprise-level training and consulting to various clients worldwide.

Currently, he is focusing on Angular, .NET Core, Azure, and GraphQL. He lives in Gurgaon, India, and is writing his second Angular book and training for his first half marathon.

Dhananjay Kumar in action

Learn from the Best Featured Speakers

Companies that support the JavaScript ecosystem
Our Sponsors 2026

By becoming a sponsor of JS Poland, you gain a unique opportunity to showcase your company and products to hundreds of experienced JavaScript developers, engineers, and tech leaders from across Europe. This kind of exposure can boost visibility, strengthen your brand within the JS community, and help you attract top engineering talent. To learn more about our sponsorship opportunities, please fill in the form.

Join our mailing list

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.