0.0.8 • Published 7 years ago

ng-desktop-notifications v0.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

0.0.8

7 years ago

0.0.7

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago