title: How to subscribe to angularMaterial Dialog afterClosed?
body: <p>Regarding closing a dialog. <a href="https://material.angular.io/components/component/dialog" rel="noreferrer">https://material.angular.io/components/component/dialog</a> <code>afterClosed</code> is not thenable? </p>
  
  <p>As in official main documentation:</p>
  
  <p><a href="https://i.stack.imgur.com/cdvnd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cdvnd.png" alt="enter image description here"></a></p>
  
  <h3>Error</h3>
  
  <p><code>Property 'then' does not exist on type '() =&gt; Observable&lt;any&gt;'. [default] Checking finished with 1 errors</code></p>
  
  <p>I tried subscribe, but doesnt work either.</p>