Winkelausgabe senden Klickereignis an übergeordnete
export class ChildComponent {
@Output() clickEvent: EventEmitter<MouseEvent> = new EventEmitter();
childClick() {
this.clickEvent.emit();
}
}
<!-- on the parents HTML template -->
<app-child (childClick)="parentClick()"></app-child>
CodeVista