title: How to emit event from modal to its parent component
body: <pre><code>/** parent componet */
  const modalRef = this.dialogService.addDialog(StaticRoutesModalComponent, {data});
  modelRef.________.subscribe((result)=&gt;{
      if(result === 'updateTable') {
          this.getAndUpdateTableData();
      }
  });
  
  /** modal component */
  export class ModalComponent extends DialogComponent&lt;DataModel, boolean&gt; implements OnInit {
      @Output() notifyParent: EventEmitter&lt;string&gt; = new EventEmitter();
  
      onEmit() {
          this.notifyParent.emit('updateTable');
      }
  }
  </code></pre>
  
  <p>Need to emit an event from modal to its parent component without closing the modal.</p>