ngx-decorate
Version:
Useful decorators for Angular 2 and above
12 lines • 476 B
JavaScript
import { defineImmutable } from './lib/defineProp';
import { HookManager } from './lib/HookManager';
import { _init } from './lib/symbols';
import { init } from './processors/init';
/** Set the given property to true when the component is initialised */
export function TrackInit() {
return function (target, value) {
defineImmutable(target, _init, value);
HookManager.for(target).add(0 /* PRE_INIT */, init);
};
}
//# sourceMappingURL=TrackInit.js.map