New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@angular-kit/effects

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-kit/effects

Powerful Angular extensions to handle subscriptions and side effects automatically in the background.

Source
npmnpm
Version
1.2.0
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

angular-kit/effects

Tooling to handle your effects (subscriptions)!

Installation

npm install @angular-kit/effects

Included

  • rxEffect

rxEffect

rxEffect is a standalone convenience function to take care of a subscription and execute side effects.

const intervalEffect = rxEffect(interval(1000), (v) => console.log(v))

Note that you need to use rxEffect within an injection context. If you want to use it outside an injection context you can pass the Ìnjector as argument.

rxEffect

rxEffect is a convenience function which acts as a container to take care of multiple subscriptions and execute sideffects.

Note that you need to use rxEffect within an injection context. If you want to use it outside an injection context you can pass the Ìnjector as argument.

const effects = rxEffect(({register}) => {
  register(interval(1000), v => console.log(v))
  // register more effects

})

Keywords

angular

FAQs

Package last updated on 09 Jul 2024

Did you know?

Socket

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.

Install

Related posts