Angular 2 – How to trigger a method on a child from the parent

I think these might be what you’re looking for:

https://angular.io/guide/component-interaction#parent-interacts-with-child-via-local-variable

https://angular.io/guide/component-interaction#parent-calls-an-viewchild

You can access child properties and methods using local variables within the template or using the @ViewChild decorator in the parent’s component class.

Leave a Comment