ngx-decorate
Version:
Useful decorators for Angular 2 and above
14 lines • 658 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const mkPropertyKeyDecorator_1 = require("./lib/mkPropertyKeyDecorator");
const symbols_1 = require("./lib/symbols");
const unsubscribe_1 = require("./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.
*/
function Unsubscribe() {
return mkPropertyKeyDecorator_1.mkPropertyKeyDecorator(symbols_1._unsubscribe, unsubscribe_1.unsubscribe, 3 /* POST_DESTROY */);
}
exports.Unsubscribe = Unsubscribe;
//# sourceMappingURL=Unsubscribe.js.map