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

NgDocStoreService

Decorators:@Injectable

No documentation has been provided.

Properties

NameTypeDescription
localStorage
p r
Storage

Methods

get()

No documentation has been provided.

Presentation
get(key: string, deserialize?: ((v: string | null) => T) | undefined): string | T | null;
Parameters
NameTypeDescription
key
string
deserialize
((v: string | null) => T) | undefined
Returns
string | T | null
Overload #1

No documentation has been provided.

Presentation
get(key: string): string | null;
Parameters
NameTypeDescription
key
string
Returns
string | null
Overload #2

No documentation has been provided.

Presentation
get(key: string, deserialize: (v: string | null) => T): T;
Parameters
NameTypeDescription
key
string
deserialize
(v: string | null) => T
Returns
T

set()

No documentation has been provided.

Presentation
set(key: string, data: T, serialize: (v: T) => string = DEFAULT_SERIALIZE): void;
Parameters
NameTypeDescription
key
string
data
T
serialize
(v: T) => string
Returns
void
Overload #1

No documentation has been provided.

Presentation
set(key: string, data: string): void;
Parameters
NameTypeDescription
key
string
data
string
Returns
void
Overload #2

No documentation has been provided.

Presentation
set(key: string, data: T, serialize: (v: T) => string): void;
Parameters
NameTypeDescription
key
string
data
T
serialize
(v: T) => string
Returns
void