
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
angular-notification-service
Advanced tools
Simple notification service for AngularJS application
Because there is no such service provided by AngularJS and at least me need it.
bower install --save angular-notification-service
Load script using <script> HTML tag like you do with angular.
<script src="assets/libs/angular-notification-service/notificationService.js"></script>
Add as reference to your application module.
angular.module('yourmodule', ['ng', 'angularNotification']);
Use it in directive, service, filter or controller:
Consumer
angular.module('yourmodule').controller('mycontroller', ['$scope', 'Notification', function($scope, Notification) {
function onNotification(my, args, here) {
}
Notification.register('alerts', onNotification);
$scope.$on('destroy', function(){ Notification.unregister('alerts', onNotification); });
}]);
Producer
angular.module('yourmodule').service('myalerts', ['Notification', function(Notification) {
return {
alert: function(my, args, here) {
Notification.notify('alerts', my, args, here);
}
};
}]);
The 'alerts' string is a channel on which you can raise notification or listen to. Channels are created as soon as at least one consumer has registered a callback on.
FAQs
Simple notification service for AngularJS application.
The npm package angular-notification-service receives a total of 4 weekly downloads. As such, angular-notification-service popularity was classified as not popular.
We found that angular-notification-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.