Is it possible to get the function passed to the Event Emitter?
I have a component and i pass a function to an event emitter like this:
<component (onClick)='function(parameter)'></component>
and in my Component i have the @Output to recieve the function and to emit when click like this:
@Output() onClick: EventEmitter<any> = new EventEmitter<any>();
<button (click)="onClick.emit($event)">
The thing is that i would like to get the function that i pass to the component, is it possible?