code: function (key) {
  
        if (!browserSupportsLocalStorage || self.storageType === 'cookie') {
          if (!browserSupportsLocalStorage) {
            $rootScope.$broadcast('LocalStorageModule.notification.warning','LOCAL_STORAGE_NOT_SUPPORTED');
          }
  
          return getFromCookies(key);
        }
  
        var item = webStorage ? webStorage.getItem(deriveQualifiedKey(key)) : null;
        // angular.toJson will convert null to 'null', so a proper conversion is needed
        // FIXME not a perfect solution, since a valid 'null' string can't be stored
        if (!item || item === 'null') {
          return null;
        }
  
        if (item.charAt(0) === "{" || item.charAt(0) === "[") {
          return angular.fromJson(item);
        }
  
        return item;
      }
docs: Directly get a value from local storage Example use: localStorageService.get('library'); // returns 'angular'