Check out example codes for "output events in angular with asynchronous". It will help you in understanding the concepts better.

Code Example 1

content_copy
      
      <zippy (open)="onOpen($event)" (close)="onClose($event)"></zippy>

Learn ReactJs, React Native from akashmittal.com