Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@typeheim/fluent-ng

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typeheim/fluent-ng

Collection of Angular extensions <a href="https://travis-ci.org/github/type

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

FluentNG

Collection of Angular extensions

NPM Version Build Status Package License Discord

Getting Started

Install package

yarn add @typeheim/fluent-ng
//or
npm -i @typeheim/fluent-ng

StreamPipe

StreamPipe is an alternative to Angular core AsyncPipe. StreamPipe is tuned to work only with observables and support setting default values instead of null. Unlike AsyncPipe, StreamPipe call detectChanges of ChangeDetectorRef instead of markForCheck that marks the component tree dirty up to the root component, and then re-renders the full path until the component that caused the change, and all its child components related to the change. In the end, StreamPipe, triggers change detection and rendering only in the very component where the change got introduced, and the child components effected by the change giving better performance and smooth UI chnages.

@Component({
  template: `
    {{observableSource | stream}}
    {{observableSource | stream: {default: 'default text'} }}
  `
})
class StreamSampleComponent {
  observableSource = new Subject()
}

AwaitPipe

AwaitPipe works the same way as StreamPipe but instead of observables it expects promise.

@Component({
  template: `
    {{promiseSource | await}}
    {{promiseSource | await: {default: 'default text'} }}
  `
})
class PromiseSampleComponent {
  promiseSource = new Promise((resolve) => resolve('it works!'))
}

FAQs

Package last updated on 02 Jun 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc