ngBrowserNotification

1.0.1 • Public • Published

ngBrowserNotification

Displaying desktop notifications to the user.

Installation

npm install ngBrowserNotification

Usage

/* Creating module with dependency */
angular.module('myApp', ['notification'])
    .controller('MyCtrl', ['$scope', 'notification', function ($scope, notification) {
        /* Notification title, message and icon */
        notification('New message', 'Notification body', 'path/to/icon.png');
    }]);

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i ngBrowserNotification

      Weekly Downloads

      2

      Version

      1.0.1

      License

      none

      Last publish

      Collaborators

      • mikielis