# angular2-clickoutside-directive

> Angular 2 Click Outside Directive

Latest version **1.1.5** (published 2016-12-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular2-clickoutside-directive
pnpm add angular2-clickoutside-directive
yarn add angular2-clickoutside-directive
bun add angular2-clickoutside-directive
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.5 |
| Published | 2016-12-28 |
| First published | 2016-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Avraam Mavridis |
| Maintainers | avrmav |
| Keywords | angular2, angular, 2, click, away, click, outside, clickaway, clickoutside |

## Links

- npm: https://www.npmjs.com/package/angular2-clickoutside-directive
- Repository: https://github.com/AvraamMavridis/angular2-clickoutside-directive
- Homepage: https://github.com/AvraamMavridis/angular2-clickoutside-directive#readme
- Issues: https://github.com/AvraamMavridis/angular2-clickoutside-directive/issues
- npm.io page: https://npm.io/package/angular2-clickoutside-directive

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 1.1.5 (latest) — 2016-12-28
- 1.1.4 — 2016-10-06
- 1.1.3 — 2016-10-06
- 1.1.2 — 2016-10-02
- 1.1.1 — 2016-10-01
- 1.1.0 — 2016-10-01
- 1.0.0 — 2016-10-01

## README

# angular2-clickoutside-directive
Angular 2 directive that provides Click Outside Functionality

[![npm version](https://badge.fury.io/js/angular2-clickoutside-directive.svg)](https://badge.fury.io/js/angular2-clickoutside-directive)

[![forthebadge](http://forthebadge.com/images/badges/built-with-love.svg)](http://forthebadge.com)

## Install

`npm i angular2-clickoutside-directive --save`

### Import the directive to your project and use it in your Component defining an event handler

```typescript
import { ClickOutsideDirective } from 'angular2-clickoutside-directive';

@Component({
  selector: 'my-app',
  template : `
  <button clickOutside (onClickOutside)="onClickOutside($event)">
    A button
  </button>`,
  directives : [  ClickOutsideDirective ]
} )
class MyFirstComponent implements OnInit {
  constructor(){}

  onClickOutside($event)
  {
    console.log('Clicked outside')
  }

  ngOnInit(){}
}
```
### Contribute

Any pull-request is more than welcome :boom: :smile:

This project adheres to the Contributor Covenant [code of conduct](http://contributor-covenant.org/). By participating, you are expected to uphold this code.

### License

MIT

---
_Source: https://npm.io/package/angular2-clickoutside-directive · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
