Is there a way to retrieve the function passed to the Event Emitter?
Within my component, I am passing a function to an event emitter as shown below:
<component (onClick)='function(parameter)'></component>
I have set up an @Output in the component to receive the function and emit it when clicked like so:
@Output() onClick: EventEmitter<any> = new EventEmitter<any>();
<button (click)="onClick.emit($event)">
Is there a way for me to access the function that is passed to the component? Any suggestions would be appreciated.