I have components in hierarhy: app.component > intro.component > header.component. I want to use in header.component, method that is defined in app.component. I recognize there's way to make it with @viewChild. What's easest way to make it work?
//edit I want to do (click) event on html tag that is in header.component.html. In this function I want to run method from app.component.