Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@ng-doc/app / Class

NgDocThemeService

Decorators:@Injectable @UntilDestroy

Service for managing themes.

Properties

NameTypeDescription
change$
p r
Subject<string | null>
document
p r
Document
documentElement
p r
HTMLElement
store
p r
NgDocStoreService

Accessors

get currentTheme

Returns the current theme.

Presentation
get currentTheme(): string | null;
Type

string | null

Methods

set()

Sets the theme by id.

Presentation
set(id?: string | undefined): void;
Parameters
NameTypeDescription
id
string | undefined

Theme id. If not provided, the theme will be removed.

Returns
void

themeChanges()

No documentation has been provided.

Presentation
themeChanges(): Observable<string | null>;
Returns
Observable<string | null>