Check out example codes for "emitter angular". It will help you in understanding the concepts better.
Code Example 1
<component
(open)="open($event)"
></component>
Code Example 2
@Output() open: EventEmitter<any> = new EventEmitter();
toggel() {
this.open.emit(null);
}
Learn ReactJs, React Native from akashmittal.com