ManagedParentChangeEvent
class ManagedParentChangeEvent
extends ManagedCoreEvent
Event that is emitted when a reference to a managed object is assigned to a managed child reference property (i.e. a property decorated with the @managedChild or @component decorators); the child object emits this event, with parent set to the new parent object, and propertyName set to the property name (only if the child object is directly assigned to a property of the parent object).
Constructor
(parent: ManagedObject, propertyName?: string): ManagedParentChangeEvent
.parent
The new parent object.
.propertyName
string
The name of the property that now references the child object (if any).
.name
string
Inherited from ManagedEvent.name.
.freeze()
(): Readonly<this>
Inherited from ManagedEvent.freeze.