ng-click-outside

WebJar for ng-click-outside

License

License

MIT
Categories

Categories

IDE Development Tools CLI User Interface
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

ng-click-outside
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

ng-click-outside
WebJar for ng-click-outside
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/tenphi/ng-click-outside

Download ng-click-outside

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/ng-click-outside/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>ng-click-outside</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/ng-click-outside/
implementation 'org.webjars.bower:ng-click-outside:0.0.1'
// https://jarcasting.com/artifacts/org.webjars.bower/ng-click-outside/
implementation ("org.webjars.bower:ng-click-outside:0.0.1")
'org.webjars.bower:ng-click-outside:jar:0.0.1'
<dependency org="org.webjars.bower" name="ng-click-outside" rev="0.0.1">
  <artifact name="ng-click-outside" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='ng-click-outside', version='0.0.1')
)
libraryDependencies += "org.webjars.bower" % "ng-click-outside" % "0.0.1"
[org.webjars.bower/ng-click-outside "0.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

ng-click-outside

An angular directive to bind an action for a click outside the element. Uses the service for single event listener on document and destructor on each element with directive to avoid memory leaks.

###Installation

Bower

$ bower install ng-click-outside --save

NPM

$ npm install ng-click-outside --save

###Usage

Basic example:

app.module('app', ['tenphi.clickOutside']);

webpack syntax

app.module('app', [require('ng-click-outside')]);

markup

<div class="dropdown" tnp-click-outside="open = false">
  <div class="dropdown-link" ng-click="open = !open"></div>
  <div class="dropdown-content" ng-show="open"></div>
</div>

Versions

Version
0.0.1