Socket
Socket
Sign inDemoInstall

@ngneat/subscribe

Package Overview
Dependencies
1
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ngneat/subscribe

Subscription Handling Directive


Version published
Weekly downloads
3.1K
increased by2.02%
Maintainers
3
Created
Weekly downloads
 

Changelog

Source

2.1.0 (2021-09-15)

Features

  • 🎸 add initialsynvalue option (5b4aa1a)

Readme

Source

MIT commitizen PRs styled with prettier All Contributors ngneat spectator

Subscription Handling Directive

Installation

npm install @ngneat/subscribe

Usage

First, we need to import the SubscribeModule:

import { SubscribeModule } from '@ngneat/subscribe';

@NgModule({
  imports: [SubscribeModule]
})
class MyModule {}

Now we can use the subscribe directive in our template:

@Component({
  template: `
    <ng-container *subscribe="getUsers$; let users; let error=error">
      {{ users | json }}
      {{ error }}
    </ng-container>
  `
})
class MyComponent {
  getUsers$ = this.service.getUsers();

  constructor(private service: UserService) {}
}

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Netanel Basal

💻 🤔

This project follows the all-contributors specification. Contributions of any kind welcome!

Icons made by Freepik from www.flaticon.com

Keywords

FAQs

Last updated on 15 Sep 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • 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