npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

@marcj/estdlib-rxjs

0.1.10 • 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();
    }
}
 

Keywords

none

install

npm i @marcj/estdlib-rxjs

Downloadsweekly downloads

5

version

0.1.10

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability