Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/danielkucal/angular-esc

Angular 4+ Directive adding event for escape key
https://github.com/danielkucal/angular-esc

angular angular-esc directive escape-key ngx

Last synced: about 1 month ago
JSON representation

Angular 4+ Directive adding event for escape key

Awesome Lists containing this project

README

        

# angular-esc
Angular 4+ Directive adding `(esc)` event for escape key press.

## Installation
1. Get it from npmjs (for npm I will hide after Escape is pressed
`
})
export class AppComponent {
public isVisible: boolean = true;
}
```

### Options

| Property name | Type | Default | Description |
| ------------- | ---- | ------- | ----------- |
| `watchEsc` | boolean | `true` | `false` value will disable the watcher |
| `stopEscPropagation` | boolean | `true` | By default the event is not propagated further, you can change it here. |