File

packages/core/src/lib/services/storage/session-storage.service.ts

Description

sessionStorage service

Extends

StorageService

Index

Properties
Methods

Methods

get
get(key: string)

retrieve an object from session storage

Parameters :
Name Type Optional Description
key string No

the associated key

Returns : any

the value or undefined, if case of error

name
name()

the name of the storage service

Returns : string
remove
remove(key: string)

removes an object from session storage

Parameters :
Name Type Optional Description
key string No

the associated key

Returns : void
set
set(key: string, value: any)

sets an object in session storage

Parameters :
Name Type Optional Description
key string No

the associated key

value any No

the value to set

Returns : void

Properties

Static NAME
Type : string
Default value : 'SessionStorageService'

results matching ""

    No results matching ""