Skip to content

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

Notifications You must be signed in to change notification settings

PierreDuc/ng-event-options

Repository files navigation

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 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 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)

Author

License

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

Acknowledgments