NgDocThemeService
Service for managing themes.
The theme is the data-theme attribute of the document element: auto, dark, the id of a custom theme, or no attribute for the light theme.
- Decorators
@Service
DeclarationTypeScript
@Service ()
export class NgDocThemeService { … }Members
Properties5 | |||||||
change$: | — | ||||||
document: Document | — | ||||||
documentElement: HTMLElement | — | ||||||
store: | — | ||||||
theme: | The current theme as a signal: the theme id, or It starts with the document's | ||||||
Accessors1 | |||||||
get currentTheme: string | null | Returns the current theme: the document's | ||||||
Methods2 | |||||||
(…): void | Sets the theme by id. | ||||||
Signature Parameters
Returns void | |||||||
(): | Emits the theme after every | ||||||
Signature Returns | |||||||
No members match.