What is ViewChild in Angular ?

How and where to use Angular ViewChild in our application?

With ViewChild we can access the Dom element and modify according to our needs. We can also access child component with viewChild and access property and method of the child component. In the example i have done few examples click on button and see the results.

Demo Githhub Stackblitz

39 thoughts on “What is ViewChild in Angular ?

Leave a Reply

Your email address will not be published. Required fields are marked *