Hi i installed the following module https://github.com/likeastore/ngDialog
it works great but i can't get how to open the dialog box from a controller, i do:
var app = angular.module('app', ['ngRoute','ngAnimate','ngSanitize','ngDialog']); app.controller('SignupController', function($rootScope,$scope) { $scope.signup = function(){ var error = false, error_list = "ERRORS"; if(!$scope.signup_username){ error = true; error_list += "\n\n Username \n " + $rootScope.errors.required_field; }if(!$scope.signup_email){ error = true; error_list += "\n\n Email \n " + $rootScope.errors.valid_email; }if(!$scope.signup_password){ error = true; error_list += "\n\n Password \n " + $rootScope.errors.required_field; } if(error){ ngDialog.open({template:error_list,plain:true}); }else{ //register } } }); But it doesn't works as expected, cause i get console error : ngDialog is not defined.