/ng-event-options

Enable event options (capture, passive, ...) inside angular templates

Primary LanguageTypeScriptMIT LicenseMIT

npm Build Status codecov

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 2KB 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 for the wiki

Prerequisites

Look here for this module's prerequisites

Installing

Look here for installation instructions

Usage

Look here for usage

Examples

Look here for examples

Limitations

  • Keymap event is not (yet) supported (keydown.enter.pcon)

Built With

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments