Skip to main content

Function: Init()

Init(target, propertyKey, descriptor): void

Defined in: core/src/decorators/ObjectDecorators.ts:50

Apply this to a function to be executed once a new object instance has been created and all dependencies injected. Note: If the decorated function returns a Promise it is not gauranteed to finish execution before the object is returned during the instantiation process.

Parameters​

target​

any

propertyKey​

string

descriptor​

PropertyDescriptor

Returns​

void