I\'m build a webapp using Angular4 and I\'m trying to create a button to call functions on other components.
I was reading other similar questions here, but they hav
I had a similiar situation, but didn´t want to make a service for this. I managed to pass it like callback. It would be something like this:
header.component.ts
@Component({
selector: 'header',
templateUrl: `
`})
export class HeaderComponent {
@Input() myFunction: Function;
}
Then just to call it passing the function and parameter
// store.html
And just declaring functionOnStore normally on store component