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 like @AndreiC's answer. A year later, here is a more robust factory service I use:
.factory('notifierService',function(toaster){
return{
notify: function(msg){
toaster.pop('success', 'Update Successful', 'The ' + msg + ' setting was updated');
},
notifyError: function(msg){
toaster.pop('error', 'Something Went Wrong', 'Please check with an administrator');
},
notifyInfo: function(msg){
toaster.pop('info', 'Information', 'The ' + msg + 'just happened' );
}
};
})
on the $resource promise
.$promise.then(function() {
notifierService.notify('email server');
});