Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular call parent method and child method

// 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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #call #parent #method #child #method
ADD COMMENT
Topic
Name
3+1 =