$sessionStorage

Description

Provides a key-value (string-object) session storage with expiry option (in minutes).

Dependencies

Usage

$sessionStorage($window, $location, $cacheFactory);

Parameters

ParamTypeDetails
$windowservice

The $window service.

$locationservice

The $location service.

$cacheFactoryservice

The $cacheFactory service.

Methods

Example

myApp.$inject = ['$sessionStorage'];
function myApp($sessionStorage) {
  // Your app code...
}

angular
  .module('myApp', ['swxSessionStorage']);