View on GitHub

angular-desktop-notification

Desktop Notifications using angular

Angular Desktop Notifications


Angular Desktop Notifications helps provide desktop notification for your angular application through a very simple api without any Jquery dependencies. And it only adds ~40 lines to your project.

Screenshot


notification-logger

Installing


In your html/template add


  <script src="bower_components/src/angular-desktop-notification.module.js"></script>

In your application, declare dependency injection like so..


  angular.module('notificationTest', ['angular-desktop-notification']);

You can call the module by


angular.module('notificationTest')
    .controller('notificationController', function($scope, Notification) {
        Notification.initialize('src/dummy.png');
        $scope.pop = function() {
          Notification.notify($scope.text,'Notification');
        }
    });

Methods


Browser Support


Works best on latest versions of Google Chrome, Firefox and Safari.