@rb-mwindh/ngx-theme-manager - v22.0.1
    Preparing search index...

    Class ThemeService

    Service for managing and selecting application themes.

    The service exposes signal-based APIs for modern Angular applications and observable APIs for observable-based and legacy applications.

    Index
    currentTheme: Signal<string | null> = ...

    Signal containing the currently selected theme ID.

    currentTheme$: Observable<string | null> = ...

    Observable containing the currently selected theme ID.

    This API is retained for observable-based and legacy applications.

    themes: Signal<Theme[]> = ...

    Signal containing all currently registered themes.

    themes$: Observable<Theme[]> = ...

    Observable containing all currently registered themes.

    This API is retained for observable-based and legacy applications.

    • Selects the theme to be used.

      Unknown theme IDs are ignored after the registry has been populated.

      Parameters

      • theme: string | null

        The theme ID to select, or null to clear the selection.

      Returns void