An open API service indexing awesome lists of open source software.

https://github.com/tenphi/ng-click-outside

An angular directive to bind an action for a click outside the element.
https://github.com/tenphi/ng-click-outside

Last synced: 8 months ago
JSON representation

An angular directive to bind an action for a click outside the element.

Awesome Lists containing this project

README

          

ng-click-outside
=====================

An angular directive to bind an action for a click outside the element. Uses the service for single event listener on document and destructor on each element with directive to avoid memory leaks.

###Installation

Bower

```bash
$ bower install ng-click-outside --save
```

NPM

```bash
$ npm install ng-click-outside --save
```

###Usage

Basic example:

```javascript
app.module('app', ['tenphi.clickOutside']);
```

webpack syntax

```javascript
app.module('app', [require('ng-click-outside')]);
```

markup

```html


```