
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
ngx-page-click
Advanced tools
Angular module to detect page events outside your wrapped component. Flexible and easy, how it should be ⇢

Angular module to detect page events outside your wrapped component. Flexible and easy, how it should be ⇢
The idea of this component is make the process flexible, transparent and easier. So the main point is integrate this component with other components, such as:
It's totally transparent for you and you can integrate easier in your application, improving your user experience 🎉
Try out our demo on Stackblitz!
You can get it on NPM installing ngx-page-click module as a project dependency.
npm install ngx-page-click --save
You'll need to add NgxPageClickModule to your application module. So that, the <ngx-page-click> components will be accessible in your application.
...
import { NgxPageClickModule } from 'ngx-page-click';
...
@NgModule({
declarations: [
YourAppComponent
],
imports: [
...
NgxPageClickModule,
...
],
providers: [],
bootstrap: [YourAppComponent]
})
export class YourAppComponent {}
After that, you can use the component in your templates, passing the configuration data into the component itself.
ngx-page-click: Handle the user clicks when it clicks outside your wrapped component;<div class="item">
<ngx-page-click
[disabled]="disabled"
[outsideClickHandler]="outsideClickHandler"
[listenTo]="on"
>
<div><p>Content goes here</p></div>
</ngx-page-click>
</div>
npm start and access the link http://localhost:4200 in your browsernpm test for run tests. In case you want to test using watch, please use npm run tddthis project is using np package to publish, which makes things straightforward. EX: np <patch|minor|major> --contents=dist/ngx-page-click
For more details, please check np package on npmjs.com
For any type of contribution, please follow the instructions in CONTRIBUTING.md and read CODE_OF_CONDUCT.md files.
Wilson Mendes (willmendesneto)
[1.1.0][] - 2020-07-18
FAQs
Angular module to detect page events outside your wrapped component. Flexible and easy, how it should be ⇢
We found that ngx-page-click demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.