We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the service can not be injected in another custom service
The text was updated successfully, but these errors were encountered:
@HamadaRizk I'm not sure to understand why you cannot inject the service in another one. I'm using a wrapper around it and it works fine
Sorry, something went wrong.
can you send me a demo please @nadouani
You can find an example here https://plnkr.co/edit/LJhe1FFj1A3ZRv6RDrwg?p=preview
angular.module('NotificationApp', ['ui-notification']) .factory('CustomNotification', ['Notification', function(Notification){ return { success: function(message) { Notification.success(message); } }; }]) .controller('MainCtrl', ['Notification', 'CustomNotification', function(Notification, CustomNotification) { this.showNotification = function() { Notification.success('Success notification'); }; this.showWrappedNotification = function() { CustomNotification.success('Custom notification'); }; }]);
No branches or pull requests
the service can not be injected in another custom service
The text was updated successfully, but these errors were encountered: