Class: LifecycleManager

LifecycleManager()

Manages the lifecycle of Avenx components.

Constructor

new LifecycleManager()

Source:

Methods

mount(component, target)

Mounts a component to a target element and performs the initial update. Injects runtime styles for the component class if not already present.

Parameters:
Name Type Description
component AvenxComponent

The component instance to mount.

target Element | string

The target DOM element or selector.

Source:

unmount(component) → {Promise:.<void:>|void}

Unmounts a component and triggers its transition hooks. If onBeforeLeave returns a Promise, unmounting is postponed.

Parameters:
Name Type Description
component AvenxComponent

The component instance.

Source:
Returns:
Type
Promise:.<void:> | void