title: Angularjs material dialog not working
body: <p>I have an Array of items which I want to output in a dialog. I do not get an error, but it is not working either.</p>
  
  <pre><code>    $scope.showDialog = function (ev) {
        $mdDialog.alert({
          controller: 'DialogController',
          controllerAs: 'DiaCtrl',
          templateUrl: 'softwareused.tmpl.html',
          parent: angular.element(document.body),
          targetEvent: ev,
          locals: {
            items: cvLibsUsed
          }
    });
  };
  </code></pre>
  
  <p>This should open an alert dialog as pointed out <a href="https://github.com/angular/material/issues/1413#issuecomment-73248708" rel="noreferrer">here</a>
  When I tried the <a href="https://material.angularjs.org/latest/demo/dialog" rel="noreferrer">demo code</a> I got the error, that "alert" is not defined.</p>
  
  <p>The template looks like this: </p>
  
  <pre><code>&lt;md-dialog aria-label="Software used"&gt;
  &lt;md-dialog-content&gt;
      &lt;h2&gt;Software used&lt;/h2&gt;
      &lt;ul&gt;
          &lt;li ng-repeat="cur in locals.items"&gt;&lt;a ng-href="{{cur.url}}"&gt;{{cur.desc}}&lt;/a&gt; - (&lt;a
                  ng-href="{{cur.licenceUrl}}"&gt;{{cur.licence}}&lt;/a&gt;
              )
          &lt;/li&gt;
      &lt;/ul&gt;
  &lt;/md-dialog-content&gt;
  &lt;md-dialog-actions layout="row"&gt;
      &lt;md-button class="md-icon-button" ng-click="close()" aria-label="Close dialog" md-autofocus&gt;
          Close
      &lt;/md-button&gt;
  &lt;/md-dialog-actions&gt;
  </code></pre>
  
  <p></p>
  
  <p>Any idea what I am doing wrong here? No AngularJS error and no dialog.</p>
  
  <p>Thank you :)</p>