ngx-decorate
Version:
Useful decorators for Angular 2 and above
11 lines • 500 B
JavaScript
import { mkPropertyKeyDecorator } from './lib/mkPropertyKeyDecorator';
import { _unsubscribe } from './lib/symbols';
import { unsubscribe } from './processors/unsubscribe';
/**
* Automatically unsubscribe from the subscription(s) present at this property.
* The property can be either a single subscription or an array of subscriptions.
*/
export function Unsubscribe() {
return mkPropertyKeyDecorator(_unsubscribe, unsubscribe, 3 /* POST_DESTROY */);
}
//# sourceMappingURL=Unsubscribe.js.map