Skip to main content

ThemeToggle

Overview

The ThemeToggle component is an Angular component that allows toggling between dark and light mode.

Properties

PropertyTypeDescription
scopeInput<string>The application scope.
darkModeModel<boolean>Indicates whether dark mode is enabled.

Methods

MethodDescription
toggleDarkModeToggles between dark and light mode.

Examples

The ThemeToggleComponent can be used in the template of a parent component as follows:

<theme-toggle [scope]="scope" />