Socket
Socket
Sign inDemoInstall

@fivethree/async-pipes

Package Overview
Dependencies
5
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @fivethree/async-pipes

Async Pipes


Version published
Weekly downloads
2
Maintainers
2
Install size
103 kB
Created
Weekly downloads
 

Readme

Source

Async Pipes

RxJS async pipes for Angular

📦 Installation

To get started, install the package from npm. The latest version supports Angular 7 and above.

You can use either npm or yarn to install @fivethree/async-pipes from npm.

npm install @fivethree/async-pipes --save

# or if you are using yarn
yarn add @fivethree/async-pipes

🔨 Usage

Import the pipe module you like to use into your page or components module:

import { NgModule } from '@angular/core';
import { PendingPipeModule } from '@fivethree/async-pipes';

@NgModule({
    imports: [
        PendingPipeModule
    ]
})
export class HomePageModule {}

Pipes

EmptyPipe -> empty

<div *ngIf="numbers$ | empty | async">
    Empty State - Source Observable emitted an empty array
</div>

ErrorPipe -> error

 <div *ngIf="numbers$ | error | async as error">
    {{error}}
</div>

PendingPipe -> pending

<div *ngIf="numbers$ | pending | async">
    Pending State - Source Observable has not emitted yet
</div>

Keywords

FAQs

Last updated on 07 Jul 2019

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