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.
npm install angular-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: set, get, and type preservation with angular-storage in AngularJS.
Rename via AngularJS decorator or avoid using in contexts where store is ambiguous.
Migrate to a modern storage solution for Angular (2+) or native localStorage API.
Ensure cookies are not used for sensitive data; consider other fallback strategies.
Explicitly set a different delimiter (e.g., ':') when creating namespaced stores.
Include the script tag for angular-storage.js and use angular.module('app', ['angular-storage']).Inject 'store' into the controller function: function($scope, store) { ... }Access store only within components managed by AngularJS (controllers, services, etc.).