I know this is answered question and there are so many links too but my issue is strange happening, could you please guide me in right path. Thank you in advance for helping me.
Issue : Event emitter is not hitting in parent component function when a button click happening in child component where emit is happening.
child html:
<button (click)="onAccept()" class="k-button approve-data" kendoButton>{{confirmBtn}}</button>
child ts:
@Output() choice = new EventEmitter<boolean>();
public onAccept() {
this.choice.emit(true);
}
parent html:
<app-confirm-modal (choice)="onPopupClose($event)" />
parent ts:
onPopupClose(isOk: boolean): void { }