I have an array of elements that I want to display in a dialog box. I do not get the error, but it does not work.
$scope.showDialog = function (ev) { $mdDialog.alert({ controller: 'DialogController', controllerAs: 'DiaCtrl', templateUrl: 'softwareused.tmpl.html', parent: angular.element(document.body), targetEvent: ev, locals: { items: cvLibsUsed } }); };
This should open the alert dialog as indicated here. When I tried the demo code, I received an error that the βwarningβ was not defined.
The template is as follows:
<md-dialog aria-label="Software used"> <md-dialog-content> <h2>Software used</h2> <ul> <li ng-repeat="cur in locals.items"><a ng-href="{{cur.url}}">{{cur.desc}}</a> - (<a ng-href="{{cur.licenceUrl}}">{{cur.licence}}</a> ) </li> </ul> </md-dialog-content> <md-dialog-actions layout="row"> <md-button class="md-icon-button" ng-click="close()" aria-label="Close dialog" md-autofocus> Close </md-button> </md-dialog-actions>
Any idea what I'm doing wrong here? There is no AngularJS error and no dialogue.
Thanks:)
source share