title: Close md-dialog inside it's component.ts
body: <p>I have a md-dialog component - <code>DialogComponent</code> - which i open from sibling component - <code>SiblingComponent</code> - and i want to close it in  <code>dialog.component.ts</code> after some actions.</p>
  
  <p><code>DialogComponent</code> basically is a form with submit button, submitting form takes me to <code>dialog.component.ts</code> function where i'm doing some validation and sending data to service. </p>
  
  <p>After validation passes and data is sent i want to make some timeout and then automatically close dial window, but i dont know how to run something like <code>md-dialog-close</code> in <code>dialog.component.ts</code></p>