In my app.js
I have
var app = angular.module(\"atlas\", [\"ngRoute\", \"ngDialog\"]);
for my controller I have
the problem was the config of ngDialogProvider
after var app = angular.module("atlas", ["ngRoute", "ngDialog"]);
we have to use:
app.config(["ngDialogProvider", function (ngDialogProvider) {
ngDialogProvider.setDefaults({
className: "ngdialog-theme-default",
plain: false,
showClose: true,
closeByDocument: true,
closeByEscape: true,
appendTo: false,
preCloseCallback: function () {
console.log("default pre-close callback");
}
});
}]);