https://github.com/pierreduc/ng-event-options
Enable event options (capture, passive, ...) inside angular templates
https://github.com/pierreduc/ng-event-options
angular angular-template capture event-listener passive
Last synced: about 1 year ago
JSON representation
Enable event options (capture, passive, ...) inside angular templates
- Host: GitHub
- URL: https://github.com/pierreduc/ng-event-options
- Owner: PierreDuc
- Created: 2017-09-13T08:43:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T10:29:03.000Z (almost 2 years ago)
- Last Synced: 2025-04-09T15:50:56.560Z (about 1 year ago)
- Topics: angular, angular-template, capture, event-listener, passive
- Language: TypeScript
- Size: 2.4 MB
- Stars: 16
- Watchers: 1
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.npmjs.com/package/ng-event-options)
[](https://travis-ci.org/PierreDuc/ng-event-options)
[](https://codecov.io/gh/PierreDuc/ng-event-options)
# NgEventOptions
Extended event binding for Angular
## Features
* Native event binding support for `passive`, `capture` and `once` event options
* Additional event options for `stopImmediatePropagation`, `stopPropagation` and `preventDefault`
* Event operator support for `throttle` and `debounce`
* Angular event options for binding outside `NgZone` and only bind when inside `platformBrowser`
* The module is only `3KB` gzipped, so no worries about that
Increase the speed of your application by using the `passive` and `NgZone` options. Decrease your code size by
utilising the pre-defined additional options.
## Wiki
Look [here](https://github.com/PierreDuc/ng-event-options/wiki/Wiki) for the wiki
### Prerequisites
Look [here](https://github.com/PierreDuc/ng-event-options/wiki/Wiki#prerequisites) for this module's prerequisites
### Installing
Look [here](https://github.com/PierreDuc/ng-event-options/wiki/Wiki#installation) for installation instructions
## Usage
Look [here](https://github.com/PierreDuc/ng-event-options/wiki/Wiki#usage) for usage
## Examples
Look [here](https://github.com/PierreDuc/ng-event-options/wiki/Wiki#examples) for examples
## Limitations
* Keymap event is not (yet) supported `(keydown.enter.pcon)`
## Author
* **Poul Kruijt** - *Initial work* - [PierreDuc](https://github.com/PierreDuc/)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details
## Acknowledgments
* [angular](https://github.com/angular/angular)
* [angular-cli](https://github.com/angular/angular-cli)
* [ng-packagr](https://github.com/dherges/ng-packagr)