ng-desktop-notifications
v0.0.8
Published
Display desktop notifications to the user.
Downloads
7
Maintainers
Readme
ng-desktop-notifications
The Notification interface of the Notifications API is used to configure and display desktop notifications to the user.
Install
npm install --save ng-desktop-notifications
Usage
import angular from 'angular'
import desktopNotifications from 'ng-desktop-notifications'
var app = angular.module('app', [desktopNotifications])
app.config(['desktopNotificationProvider', function(desktopNotification){
desktopNotification.configure({
icon: 'path/to/file.icon'
})
}])
app.controller('MyController', ['desktopNotification', function(desktopNotification){
desktopNotification.show('Notification', {
body: 'My desktop notification!\nA AngularJs Module'
})
}])
License
The MIT