title: Closing an Angular Material dialog
body: <p>Calling $mdDialog.cancel() from the controller will close the dialog. But is there a way of not using a controller to close the dialog box like directly from the html ? I want something like this to work: </p>
  
  <pre><code>&lt;md-dialog-actions layout="row"&gt;
        &lt;span flex&gt;&lt;/span&gt;
        &lt;md-button ng-click="$mdDialog.cancel()" style="margin-right:20px;" &gt;
          Ok
        &lt;/md-button&gt;
      &lt;/md-dialog-actions&gt;
  </code></pre>