Skip to content

projecao/ng-desktop-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published