Avatar ·

Calling a child component method from a parent class in Angular

Hello everyone! I'm new to Angular and TypeScript, and I've run into a problem that I can't seem to solve. I have a parent component (ParentComponent) and a child component (ChildComponent). The child component has a resetForm() method that resets the form. I need to call this child component method when a button in the parent component is clicked. Here's the simplified code: **Parent component (parent.component.ts):** ```typescript import { Component } from '@angular/core'; @Component({ selector: 'app-parent', template: ` ` }) export class ParentComponent { resetChildForm() { // How to call the child component's resetForm() here? } } ``` **Child co**