What is ViewChild and why is it used?

Entry Angular

Answer

ViewChild allows a component to access child components, DOM elements, or directives.

It is useful for calling child methods, reading template references, and interacting with the DOM after view initialization.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice