Exciting release!Introducing "safe npm". Learn more →
Socket
Log inDemoInstall

@ngneat/subscribe

Package Overview
Dependencies
1
Maintainers
3
Versions
12
Issues
File Explorer

Advanced tools

@ngneat/subscribe

Subscription Handling Directive

    4.0.0latest
    Github

Version published
Maintainers
3
Weekly downloads
403
decreased by-29.79%

Weekly downloads

Changelog

Source

4.0.0 (2022-11-30)

⚠ BREAKING CHANGES

  • 🧨 upgrade to ng15

Features

Readme

Source

MIT commitizen PRs styled with prettier All Contributors ngneat spectator

Subscription Handling Directive

Installation

npm install @ngneat/subscribe

Usage

Now we can import the SubscribeDirective and use the subscribe directive in our template:

import { SubscribeDirective } from '@ngneat/subscribe'; @Component({ imports: [SubscribeDirective], template: ` <ng-container *subscribe="users$ as users; let error=error"> {{ users | json }} {{ error }} </ng-container> ` }) class MyComponent { users$ = inject(UserService).getUsers(); }

Keywords

FAQs

Last updated on 30 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc