I have in my component an EventEmitter
but I can't compile it because it throws the error:
Supplied parameters do not match any signature of call target
My component:
@Output() addModel = new EventEmitter<any>();
saveModel($event, make, name) {
this.addModel.emit(make, name);
}
If I delete one of the parameters in this.addModel.emit()
it works but is it possible to pass 2 parameters to EventEmitter
and how?