Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-click-outside

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-click-outside - npm Package Compare versions

Comparing version 0.5.1 to 1.0.0

24

package.json
{
"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`
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc