Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/danielkucal/angular-esc
- Owner: DanielKucal
- License: mit
- Created: 2018-04-10T11:45:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-10T13:33:36.000Z (almost 7 years ago)
- Last Synced: 2024-11-29T03:06:07.254Z (about 2 months ago)
- Topics: angular, angular-esc, directive, escape-key, ngx
- Language: TypeScript
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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. |