angular-click-outside

An angular directive to detect a click outside of an elements scope
Homepage:
4 people use it
Submitted by: 294948?v=3 IamAdamJowett

angular-click-outside

An angular directive to detect a click outside of an elements scope. Great for closing dialogues, drawers and off screen menu's etc.

Usage

To use this directive, ensure the element you want to detect a close outside of has an id (not class) assigned. Id's are needed as multiple elements may have the same class. Add the directive via the click-outside attribute, and give exceptions via the outside-if-not attribute.

See the full instructions in the GitHub readme.

comments powered by Disqus
This page was last updated over 3 years ago.