UNPKG

unserver-unify

Version:

23 lines 482 B
'use strict'; angular.module('bamboo.common').service('localStorageHelper', function($localStorage) { var self = this; /** * put * @param {string} key * @param {any} value * @return */ self.put = function(key, value) { if (key && value) { $localStorage[key] = value; } } /** * get * @param {string} key * @return {any} */ self.get = function(key) { return $localStorage[key]; } });