@marcj/estdlib-rxjs
TypeScript icon, indicating that this package has built-in type declarations

0.1.19 • Public • Published

estdlib.ts RXJS

Build Status npm version

Installation

npm install @marcj/estdlib-rxjs

Usage example

import {Subscriptions} from "@marcj/estdlib-rxjs";

class MyComponent implements OnDestroy, OnInit {
    private subs = new Subscriptions;

    public onInit() {
        this.subs.add = this.observable.subscribe(() => {
            //do something
        });

        this.subs.add = this.anotherOne.subscribe(() => {
            //do something
        });
    }
    
    public OnDestroy() {
        this.subs.unsubscribe();
    }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.19
    0
    • latest

Version History

Package Sidebar

Install

npm i @marcj/estdlib-rxjs

Weekly Downloads

0

Version

0.1.19

License

MIT

Unpacked Size

20.6 kB

Total Files

16

Last publish

Collaborators

  • marcj