title: how can I get result from ngbModal component
body: <p>I need help with getting results from ngbModal component.</p>
  
  <p>I open the modal with a link </p>
  
  <pre><code>&lt;a class="order-collection-options-link" (click)="openTimePicker()"&gt;{{'ORDER_COLLECTION_OPTIONS_LABEL' | dict}}&lt;/a&gt;
  </code></pre>
  
  <p>here is my openTimePicker() method </p>
  
  <pre><code>openTimePicker() {
      const modalRef =     this.modalService.open(DateTimePickerModalComponent);
      console.log(modalRef.componentInstance);
  }    
  </code></pre>
  
  <p>my DateTimePickerModalComponent.
  It has two buttons APPLY and OK and each emits event onApplySelection and onConfirmSelection ... </p>
  
  <pre><code>@Component({
    selector: 'date-time-picker-modal',
    styleUrls: ['./dateTimePickerModal.component.scss'],
    templateUrl: './dateTimePickerModal.component.html',
  })
  
  export class DateTimePickerModalComponent {
  
  private selection : Date[] = [];
  
    @Output() onApplySelection: EventEmitter&lt;Date&gt; = new EventEmitter&lt;Date&gt;();
    @Output() onConfirmSelection: EventEmitter&lt;Date[]&gt; = new EventEmitter&lt;Date[]&gt;()
  
      ...
  
  
  }
  </code></pre>
  
  <p>So I need to know how to attach my "parent" component to those events in open() method .. </p>