ngc-focusout

2.1.2 • Public • Published

ngc-focusout Build Status

More robust replacement for ngBlur. This directive uses the blur event's capture phase to detect when focus leaves not just the element this is applied on, but children of the element as well.

Usage:

<div ngc-focusout="applyAngularExpression()" tabindex="-1"></div>

Note that the element must be focusable in order for any blur events to fire. Make sure to use this together with the tabindex attribute when necessary.

Package Sidebar

Install

npm i ngc-focusout

Weekly Downloads

0

Version

2.1.2

License

MIT

Unpacked Size

8.35 kB

Total Files

6

Last publish

Collaborators

  • onlywei