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.
- Host: GitHub
- URL: https://github.com/tenphi/ng-click-outside
- Owner: tenphi
- Created: 2015-07-04T21:42:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-01-26T03:06:00.000Z (over 8 years ago)
- Last Synced: 2025-08-24T07:30:28.304Z (10 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```