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

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

    1.0.1-alpha.27 • Public • Published

    estdlib.ts RXJS

    Build Status npm version

    Installation

    npm install @deepkit/core-rxjs
    

    Usage example

    import {Subscriptions} from "@deepkit/core-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 @deepkit/core-rxjs

    DownloadsWeekly Downloads

    96

    Version

    1.0.1-alpha.27

    License

    MIT

    Unpacked Size

    512 kB

    Total Files

    37

    Last publish

    Collaborators

    • avatar