{"id":46933,"library":"angular-storage","title":"angular-storage","description":"Store wrapper for AngularJS that defaults to localStorage/sessionStorage and falls back to ngCookies. Version 0.0.15 is the latest stable release (no recent updates). Saves and retrieves JavaScript objects, numbers, and strings with type preservation. Features caching to avoid redundant reads and supports namespaced stores. Designed for AngularJS (1.x) applications.","status":"maintenance","version":"0.0.15","language":"javascript","source_language":"en","source_url":"https://github.com/auth0/angular-storage","tags":["javascript"],"install":[{"cmd":"npm install angular-storage","lang":"bash","label":"npm"},{"cmd":"yarn add angular-storage","lang":"bash","label":"yarn"},{"cmd":"pnpm add angular-storage","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency for AngularJS (1.x) integration.","package":"angular","optional":false}],"imports":[{"note":"CommonJS require returns module object, but store is a service; use ESM or inject via AngularJS dependency injection.","wrong":"const store = require('angular-storage');","symbol":"store","correct":"import { store } from 'angular-storage';"},{"note":"storeProvider is used for configuration; similar import pattern as store.","wrong":"const storeProvider = require('angular-storage');","symbol":"storeProvider","correct":"import { storeProvider } from 'angular-storage';"},{"note":"The module name is 'angular-storage' (not the Bower package name 'a0-angular-storage').","wrong":"angular.module('app', ['a0-angular-storage']);","symbol":"angular.module('app', ['angular-storage'])","correct":"angular.module('app', ['angular-storage']);"}],"quickstart":{"code":"var app = angular.module('app', ['angular-storage']);\napp.controller('Controller', function(store) {\n  store.set('version', 42);\n  var version = store.get('version');\n  console.log(typeof version); // 'number'\n});","lang":"javascript","description":"Demonstrates basic usage: set, get, and type preservation with angular-storage in AngularJS."},"warnings":[{"fix":"Rename via AngularJS decorator or avoid using in contexts where store is ambiguous.","message":"Service name 'store' conflicts with other libraries (e.g., Redux store).","severity":"gotcha","affected_versions":"all"},{"fix":"Migrate to a modern storage solution for Angular (2+) or native localStorage API.","message":"Package is unmaintained; no updates since 2016. AngularJS (1.x) ecosystem is in maintenance mode.","severity":"deprecated","affected_versions":">=0.0.15"},{"fix":"Ensure cookies are not used for sensitive data; consider other fallback strategies.","message":"Falls back to ngCookies when localStorage/sessionStorage unavailable, which may expose data in HTTP headers.","severity":"gotcha","affected_versions":"all"},{"fix":"Explicitly set a different delimiter (e.g., ':') when creating namespaced stores.","message":"Namespaced stores use a delimiter that defaults to '.', which may conflict with dot-notation in keys.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.0.15':18 '1':51 'angular':2 'angular-storag':1 'angularj':7,50 'applic':53 'avoid':41 'back':14 'cach':39 'default':9 'design':48 'fall':13 'featur':38 'javascript':30,54 'latest':21 'localstorage/sessionstorage':11 'namespac':46 'ngcooki':16 'number':32 'object':31 'preserv':37 'read':43 'recent':25 'redund':42 'releas':23 'retriev':29 'save':27 'stabl':22 'storag':3 'store':4,47 'string':34 'support':45 'type':36 'updat':26 'version':17 'wrapper':5 'x':52","created_at":"2026-06-07T16:48:39.630833+00:00","updated_at":"2026-06-07T16:48:39.630833+00:00","problems":[{"fix":"Include the script tag for angular-storage.js and use angular.module('app', ['angular-storage']).","cause":"Missing script inclusion or wrong module name in angular.module dependencies.","error":"Module 'angular-storage' is not available!"},{"fix":"Inject 'store' into the controller function: function($scope, store) { ... }","cause":"store service not injected correctly in controller/directive.","error":"TypeError: Cannot read property 'get' of undefined"},{"fix":"Access store only within components managed by AngularJS (controllers, services, etc.).","cause":"Using store outside of AngularJS's dependency injection scope (e.g., in plain JavaScript).","error":"ReferenceError: store is not defined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/auth0/angular-storage#readme","github":"https://github.com/auth0/angular-storage","docs":null,"changelog":null,"pypi":null,"npm":"angular-storage","openapi_spec":null,"status_page":null,"smithery":null,"categories":["storage"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}