// How to call a child method from a parent component
import { ChildComponent } from '/somepath/childcomponent.ts';
export class ParentComponent implements onInit {
@ViewChild(ChildComponent) ChildComponent;
this.ChildComponent.childMethod();
// How to call a parent method + a child method from the parent's button click
// In hindsight, I wouldn't recommend this. But it's here if you need to use it.
<app-child #child></app-child>
<button (click)="[callParentMethod(), child.callChildMethod()]">Call</button>