ng2-click-outside
Advanced tools
Comparing version 0.5.1 to 1.0.0
{ | ||
"name": "ng2-click-outside", | ||
"version": "0.5.1", | ||
"version": "1.0.0", | ||
"description": "Angular 2 directive for handling click events outside an element.", | ||
@@ -30,19 +30,21 @@ "repository": { | ||
"scripts": { | ||
"start": "typings install && tsc --p ./tsconfig.json", | ||
"lint": "tslint src/**/*.ts", | ||
"start": "typings install && npm run lint && tsc", | ||
"prepublish": "npm start" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "^2.0.0-rc.5", | ||
"@angular/platform-browser": "^2.0.0-rc.5" | ||
"@angular/core": "^2.0.0", | ||
"@angular/platform-browser": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/common": "^2.0.0-rc.5", | ||
"@angular/compiler": "^2.0.0-rc.5", | ||
"@angular/core": "^2.0.0-rc.5", | ||
"@angular/platform-browser": "^2.0.0-rc.5", | ||
"rxjs": "5.0.0-beta.6", | ||
"@angular/common": "^2.0.0", | ||
"@angular/compiler": "^2.0.0", | ||
"@angular/core": "^2.0.0", | ||
"@angular/platform-browser": "^2.0.0", | ||
"rxjs": "5.0.0-beta.12", | ||
"tslint": "^3.15.1", | ||
"typescript": "^1.8.10", | ||
"typings": "^1.3.2", | ||
"zone.js": "^0.6.13" | ||
"typings": "^1.3.3", | ||
"zone.js": "^0.6.23" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # ng2-click-outside | ||
**[Demo](http://echeung.me/ng2-click-outside/)** | ||
**[Demo](https://echeung.me/ng2-click-outside/)** | ||
@@ -27,3 +27,3 @@ Angular 2 directive for handling click events outside an element. Useful for things like reacting to clicking | ||
Using a module: | ||
Add `ClickOutsideModule` to your list of module imports: | ||
@@ -41,10 +41,7 @@ ```typescript | ||
If you're not using the module, be sure to add the directive to your component's decorator: | ||
You can then use the directive in your templates: | ||
```typescript | ||
import { ClickOutsideDirective } from 'ng2-click-outside'; | ||
@Component({ | ||
selector: 'app', | ||
directives: [ClickOutsideDirective], | ||
template: ` | ||
@@ -69,2 +66,2 @@ <div (clickOutside)="onClickedOutside($event)">Click outside this</div> | ||
Default: `false` | ||
Default: `false` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
11296
9
64