@deepkit/core-rxjs
v1.0.1-alpha.154
Published
Deepkit core rxjs library
Downloads
2,488
Readme
estdlib.ts RXJS
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();
}
}