Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
ng2-observable-events
Advanced tools
giving you DOM event observables as a directive that can be applied to any child element in your component
Angular 2 pushes the developer towards observable "stream" programming. This is modeled very nicely for state changes using inputs and the async pipe. However getting dom events observables is a bit cumbersome if done right,I made this little helper to make it a little easier.
It is easy to use Rx.Observable.fromEvent constructor somewhere in your component code, however this will be against angular 2 paradigm of not accessing the DOM directly as for the first paramter you will need reference to a native DOM element.
My code uses Rx.Observable.fromEventPattern, utilizing the renderer .listen method which goes though all the abstraction needed for both the webWorker and server use cases as well as the obvious browser use case.
##Use
example code in src folder
FAQs
giving you DOM event observables as a directive that can be applied to any child element in your component
The npm package ng2-observable-events receives a total of 1 weekly downloads. As such, ng2-observable-events popularity was classified as not popular.
We found that ng2-observable-events 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
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.