Posted On: Mar 13, 2020
The @ViewChild() is a decorator that is used to configure a view query. It can be used to get the first element or the directive matching the selector from the view DOM. The @ViewChild also provides an instance of other components or directive in a parent component so the parent component can access the methods of that component or directive.
Never Miss an Articles from us.