I have a following function inside a child component:
reload() {
clearInterval(this.points);
this.initiateInterval();
this.redrawImages();
}
It's redrawing few images on window.resize event.
But in the parent component, I have a button menu-burger which shrunks the window. I want to bind to this button the reload() function from the child component.
This is my button from the parent component:
<button class="collapseMenuIcon" (click)="toggleMenu()">
I was looking for other questions about it on Stack, but in my case - this reload function uses a lot of stuff in this child component.
Also few solutions from other questions are deprecated, because Angular2 changes often.
Thank you in advance, I will upvote all answers.