event emitter function angular code example
Example 1: output events in angular with asynchronous
content_copy
<zippy (open)="onOpen($event)" (close)="onClose($event)"></zippy>
Example 2: angular event emitter
@Output() open: EventEmitter<any> = new EventEmitter();
toggel() {
this.open.emit(null);
}