title: Ionic 3: Modal Controller - Get component Instance
body: <p>I am showing a Component <code>EventFeedbackComponent</code> via ModalController. Now I want to subscribe to a <code>Subject</code> in <code>EventFeedbackComponent</code>. How do I get access to the component instance, to achieve my goal.</p>
  
  <p>My current code:</p>
  
  <pre><code>let modal   =   this.modalCtrl.create(EventFeedbackComponent);
  modal.present();
  
  // This is not working. Throws the error "ERROR TypeError: Cannot read property 'subscribe' of undefined"
  modal._component.feedbackSubmit.subscribe(feedbackResponse =&gt; {
      console.log(feedbackResponse);
  });
  </code></pre>
  
  <p>Documentation didn't help in this regard: <a href="https://ionicframework.com/docs/api/components/modal/ModalController/" rel="noreferrer">https://ionicframework.com/docs/api/components/modal/ModalController/</a></p>
  
  <p>My use case:</p>
  
  <ul>
  <li>I have a list of Events in my <code>Service</code>, for which I need to get Feedback.</li>
  <li><code>EventFeedbackComponent</code> has controls to get Feedback for a Single Event.</li>
  <li>Now, I show the EventFeedbackComponent to get feedback for First Event and listen for the event <code>feedbackSubmit</code> via <code>Subject</code></li>
  <li>On submission of <code>feedback</code>, I show a Success Toast and switch my service variable in Service to show next event.</li>
  <li>Above point is repeated, till I get feedback for all Unreviewed events with the same Component shown via Model.</li>
  </ul>