ToggleChildComponent
Defined in: components/toggle/toggle-child.component.ts:20
Represents a single child item of a ToggleComponent. Each child can have its own template and name, and is managed by the parent toggle component.
Remarks
Typically not used standalone; meant to be embedded within a ToggleComponent.
Since
1.1.0
Author
Simon Kovtyk
Implements
OnDestroy
Constructors
Constructor
ts
new ToggleChildComponent(): ToggleChildComponent;Returns
ToggleChildComponent
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
destroyRef | public | DestroyRef | Reference used to clean up resources when this component is destroyed. | components/toggle/toggle-child.component.ts:26 |
name | readonly | InputSignal<string | undefined> | - | components/toggle/toggle-child.component.ts:21 |
templateRef | readonly | Signal<TemplateRef<unknown>> | - | components/toggle/toggle-child.component.ts:23 |
Methods
addDestroyHandler()
ts
addDestroyHandler(handler): void;Defined in: components/toggle/toggle-child.component.ts:37
Registers a callback to run when the component is destroyed
Parameters
| Parameter | Type | Description |
|---|---|---|
handler | () => void | The callback function to execute on component destruction |
Returns
void
Since
1.0.0
Author
Simon Kovtyk
ngOnDestroy()
ts
ngOnDestroy(): void;Defined in: components/toggle/toggle-child.component.ts:43
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
Returns
void
Implementation of
ts
OnDestroy.ngOnDestroy