1.0.1 • Published 8 years ago
ng2-rx-destroyable-component v1.0.1
ng2-rx-destroyable-component
Small package with decorators and helpers which helps in managing RxJS unsubscription in easy manner (not annoying) in Angular world :)
Installation
npm i --save ng2-rx-destroyable-componentDemo
As you can see we should only decorate our component by @DestroyableComponent and after then we are able to use combined componentDestroyed helper with takeUntil operator
takeUntilReturns the values from the source observable sequence until the other observable sequence or Promise produces a value.