<commit_before>requestNotificationPermission directive
=======================================

[![Build Status](https://travis-ci.org/mykabam/requestNotificationPermission.png?branch=master)](https://travis-ci.org/mykabam/requestNotificationPermission)
[![Dependency Status](https://gemnasium.com/mykabam/requestNotificationPermission.png)](https://gemnasium.com/mykabam/requestNotificationPermission)

A handy directive to request Notification permission from user.<commit_msg>docs(README.md): add how to install and to use<commit_after>requestNotificationPermission directive
=======================================

[![Build Status](https://travis-ci.org/mykabam/requestNotificationPermission.png?branch=master)](https://travis-ci.org/mykabam/requestNotificationPermission)
[![Dependency Status](https://gemnasium.com/mykabam/requestNotificationPermission.png)](https://gemnasium.com/mykabam/requestNotificationPermission)

A handy directive to request Notification permission from user.

## How to Install

To use this directive, fist you need to install it via [Bower](http://bower.io/).
I assume you already install the Bower:

```
bower install kabam-requestNotificationPermission
```

Include the directive `script requestNotificationPermission.js` into your application:

```
<script type="text/javascript" src="bower_components/kabam-requestNotificationPermission/requestNotificationPermission.js"></script>
```

Add `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.
For examples:

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.
```
<body request-notification-permission>Call</body>
```

You might want to use the directive this way if you need to get the user permission after they click some element or button.
```
<button request-notification-permission>Call</button>
```
{'fraction_non_alphanumeric': 0.13739376770538245, 'fraction_numerical': 0.0, 'mean_word_length': 6.966165413533835, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1287114', 'n_tokens_mistral': 562, 'n_tokens_neox': 539, 'n_words': 156}