angular-notifications
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35177
230