1.0.1 • Published 7 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-component
Demo
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
takeUntil
Returns the values from the source observable sequence until the other observable sequence or Promise produces a value.