I have a template like so:
<main>
<footer></footer>
</main>
I want to emit a value from the footer to the main component. On my parent I have a function called setStepCounter(value : number) : void
. When I add the eventemitter to my footer component like so:
@Component({
selector: 'footer',
template: `<ng-content></ng-content> `,
host: {
'(stepCounterEmitter)': 'setStepCounter($event)'
}
})
I get the following error: self.context.setStepCounter is not a function.