angular 10 eventemitter code example
Example 1: angular model output only
(ngModelChange)="onModelChange()"
Example 2: angular event emitter
@Output() open: EventEmitter<any> = new EventEmitter();
toggel() {
this.open.emit(null);
}
Example 3: emitter angular
<component
(open)="open($event)"
></component>