ng-desktop-notifications

0.0.8 • Public • Published

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

Package Sidebar

Install

npm i ng-desktop-notifications

Weekly Downloads

0

Version

0.0.8

License

MIT

Last publish

Collaborators

  • anteriovieira