Skip to content

Commit 168e383

Browse files
committed
npm package and badges
Add npm install instructions Add badges with versions links to packages
1 parent 0cc5afc commit 168e383

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1+
[![GitHub version](https://badge.fury.io/gh/TheSharpieOne%2Fangular-off-click.svg)](https://badge.fury.io/gh/TheSharpieOne%2Fangular-off-click) [![npm version](https://badge.fury.io/js/angular-off-click.svg)](https://badge.fury.io/js/angular-off-click) [![Bower version](https://badge.fury.io/bo/angular-off-click.svg)](https://badge.fury.io/bo/angular-off-click) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TheSharpieOne/angular-off-click/master/LICENSE.md)
12
angular-off-click
23
=================
34

45
It's like click, but when you don't click on your element.
56

67
<h4>Installing</h4>
78
```
9+
npm install angular-off-click --save
10+
```
11+
-OR-
12+
```
813
bower install angular-off-click --save
914
```
10-
15+
-THEN-
1116
```javascript
1217
angular('yourAngularApp',['offClick']);
1318
```
@@ -24,4 +29,3 @@ Here we have a slide out navigation div that will appear when the user clicks a
2429
The `off-click` attribute is the expression or function that will execute each time the user doesn't click on your element (or filter)<br />
2530
The optional `off-click-if` attribute is an expression that will determine if the `off-click` should trigger or not.<br/>
2631
The optional `off-click-filter` directive allows you to pass a comma separated list of targets whose `off-click` will not be triggered when the element `off-click-filter` was applied to is clicked (gets parsed as javascript, so remember to wrap in single quotes)
27-

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"name": "angular-off-click",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"repository": {
55
"type": "git"
66
},
7-
"main": [
8-
"./dist/angular-off-click.js"
9-
],
7+
"main": "./dist/angular-off-click.js",
108
"scripts": {
119
"build": "gulp build"
1210
},

0 commit comments

Comments
 (0)