Wondering what’s next for npm?Check out our public roadmap! »

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

    Keywords

    none

    Install

    npm i @marcj/estdlib-rxjs

    DownloadsWeekly Downloads

    25

    Version

    0.1.19

    License

    MIT

    Unpacked Size

    20.6 kB

    Total Files

    16

    Last publish

    Collaborators

    • avatar