SessionStorageService

SessionStorageService

Class representing a Browser Session Storage service.

Extends

Members

storage

Description:
  • The storage interface to use.

Source:
Overrides:

The storage interface to use.

Methods

getItem(item, def_value) → {Any}

Description:
  • Get a value from the browser storage.

Source:
Inherited From:
Parameters:
Name Type Description
item string

The key name.

def_value Any

The default value.

Returns:
Type
Any

removeItem(item) → {Any}

Description:
  • Remove a value from the storage.

Source:
Inherited From:
Parameters:
Name Type Description
item string

The key name.

Returns:
Type
Any

setItem(item, value, on_error) → {Any}

Source:
Inherited From:
Parameters:
Name Type Description
item string

The key name.

value Any

The value.

on_error function

The error callback.

Returns:
Type
Any