A handy directive to request Notification permission from user.
- Chrome >= v22.0
- Firefox >= v22.0
How to Install
To use this directive, fist you need to install it via Bower. I assume you already install the Bower:
bower install kabam-requestNotificationPermission
Include the directive
script requestNotificationPermission.js into your application:
kabam.requestNotificationPermission as a module dependency to your application
angular.module('yourAwesomeApplication', [ 'kabam.requestNotificationPermission' ]);
How to Use
To use this directive, you need to add new attribute
request-notification-permission to your html element.
You might want to use the directive this way if you need to get the user permission in the first time they load the application.
You might want to use the directive this way if you need to get the user permission after they click some element or button.
Install dev dependencies
To install the dev dependencies:
To run the unit tests:
Licensed under the MIT License.