🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

angular-notifications

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-notifications - npm Package Compare versions

Comparing version

to
0.2.0

69

build/js/notifier.js

@@ -8,39 +8,44 @@ "use strict";

var Notifier = (function () {
function Notifier(scope) {
_classCallCheck(this, Notifier);
function Notifier(scope) {
_classCallCheck(this, Notifier);
this.scope = scope;
this.scope = scope;
}
_createClass(Notifier, {
notify: {
value: function notify(type, message) {
this.scope.$broadcast("ngNotifications:notify", type, message);
}
},
closeAll: {
value: function closeAll() {
this.notify("ngNotifications:closeAll");
}
},
error: {
value: function error(message) {
this.notify("error", message);
}
},
warning: {
value: function warning(message) {
this.notify("warning", message);
}
},
info: {
value: function info(message) {
this.notify("info", message);
}
},
success: {
value: function success(message) {
this.notify("success", message);
}
}
});
_createClass(Notifier, {
notify: {
value: function notify(type, message) {
this.scope.$broadcast("ngNotifications:notify", type, message);
}
},
closeAll: {
value: function closeAll() {
this.notify("ngNotifications:closeAll");
}
},
error: {
value: function error(message) {
this.notify("error", message);
}
},
warning: {
value: function warning(message) {
this.notify("warning", message);
}
},
info: {
value: function info(message) {
this.notify("info", message);
}
}
});
return Notifier;
return Notifier;
})();
module.exports = Notifier;
{
"name": "angular-notifications",
"version": "0.1.3",
"version": "0.2.0",
"description": "Sweet notifications for your angular app",

@@ -5,0 +5,0 @@ "keywords": [

class Notifier {
constructor(scope) {
this.scope = scope;
}
constructor(scope) {
this.scope = scope;
}
notify(type, message) {
this.scope.$broadcast('ngNotifications:notify', type, message);
}
notify(type, message) {
this.scope.$broadcast('ngNotifications:notify', type, message);
}
closeAll() {
this.notify('ngNotifications:closeAll');
}
closeAll() {
this.notify('ngNotifications:closeAll');
}
error(message) {
this.notify('error', message);
}
error(message) {
this.notify('error', message);
}
warning(message) {
this.notify('warning', message);
}
warning(message) {
this.notify('warning', message);
}
info(message) {
this.notify('info', message);
}
info(message) {
this.notify('info', message);
}
success(message) {
this.notify('success', message);
}
}
module.exports = Notifier;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet