title: How do i listen for dismiss event inside Model Ionic
body: <p>I have one .ts file for model. I want to execute some code when this model is dismissed(from model file itself).</p>
  
  <p>All examples are about <code>onDidDismiss()</code> method which is written in model caller .ts file.I mean i have some db listeners in my model .ts file.</p>
  
  <p>What i am trying to do is unsubscribe them when user dismisses the model window by clicking outside of model window.</p>