I am using this service for notifications: https://github.com/jirikavi/AngularJS-Toaster
Is working perfectly. Already configured for that anywhere in my application I c
i use the toastr in the following manner:
Include toastr in your index html:
Define a factory which you can inject in any controller:
angular.module('app').value('ngToastr',toastr);
angular.module('app').factory('ngNotifier',function(ngToastr){
return{
notify: function(msg){
ngToastr.success(msg);
},
notifyError: function(msg){
ngToastr.error(msg);
},
notifyInfo: function(msg){
ngToastr.info(msg);
}
}
});
After that you can inject this module in any controller:
angular.module('app').controller('myCtrl',function($scope, ngNotifier) {
ngNotifier.notifyError($scope.validationError);
});