title: How to pass data from modal to component?
body: <p>I have modal component and it looks like this:</p>
  
  <pre><code>&lt;z-popup title="User search" #generaldetailHistoryModal modalSize="modal-lg" (onHideModal)="onHideModal()" footer="true"&gt; 
      &lt;div content-type="body"&gt; 
          &lt;z-grid [columns]="columnsUserSearchModal" [data]='users' paginator="true"  (selectedItemClick)='setSelectedUser($event)'&gt;&lt;/z-grid&gt;
      &lt;/div&gt;
  &lt;/z-popup&gt;
  </code></pre>
  
  <p>I have preview component where i call this modal:</p>
  
  <pre><code>&lt;user-search-modal [modalShown]="modalUserSearchShown" (onHide)="modalUserSearchShown=false"&gt;&lt;/user-search-modal&gt;
  </code></pre>
  
  <p>Now what i want is to pass what i selected in modal to preview component.</p>
  
  <p>In modal.ts i get selected data:</p>
  
  <pre><code>  setSelectedUser(event:any){
          this.selectedData.emit(event);
      }
  </code></pre>
  
  <p>But now i dont know how pass that data to preview component?</p>