angular2-take-until-destroy
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -13,5 +13,5 @@ import { Subject } from 'rxjs/Subject'; | ||
originalDestroy && typeof originalDestroy === 'function' && originalDestroy.apply(this, arguments); | ||
this._takeUntilDestroy$ && this._takeUntilDestroy$.complete(); | ||
this._takeUntilDestroy$ && this._takeUntilDestroy$.next() && this._takeUntilDestroy$.complete(); | ||
}; | ||
} | ||
//# sourceMappingURL=angular2-take-until-destroy.js.map |
{ | ||
"name": "angular2-take-until-destroy", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "description": "Add take until component destroy for easy unsubscribe when the component destroyed", |
@@ -1,2 +0,4 @@ | ||
# Angular 2+ - Unsubscribe for pros [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) | ||
[![Build Status](https://travis-ci.org/NetanelBasal/angular2-take-until-destroy.svg?branch=master)](https://travis-ci.org/NetanelBasal/angular2-take-until-destroy) | ||
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) | ||
# Angular 2+ - Unsubscribe for pros | ||
@@ -17,3 +19,3 @@ ##### Declarative way to unsubscribe from observables when the component destroyed | ||
@TakeUntilDestroy | ||
export class InboxComponent { | ||
export class InboxComponent implements OnDestroy { | ||
componentDestroy; | ||
@@ -20,0 +22,0 @@ constructor( ) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4209
37