An AngularJS module that gives you access to the browsers local storage with cookie fallback. You can install angular-local-storage using 3 different ways. For local testing (when you are testing on localhost) set the domain to an empty string ''. Setting the domain to 'localhost' will not work on all browsers (eg. Chrome) since some browsers only allow you to set domain cookies for registry-controlled domains, i.e. something ending in .com or so, but not IPs or intranet hostnames like localhost. Configure whether events should be broadcasted on $rootScope for each action. You can also dynamically change storage type by passing the storage type as the last parameter for any of the API calls.

Features

  • You could set a prefix to avoid overwriting any local storage variables from the rest of your app
  • You could change web storage type to localStorage or sessionStorage
  • Set cookie options (usually in case of fallback)
  • If localStorage is not supported, the library will default to cookies instead
  • Change the local storage prefix during execution Returns
  • You can also dynamically change storage type by passing the storage type as the last parameter for any of the API calls

Project Samples

Project Activity

See All Activity >

Categories

Browsers, Storage

License

MIT License

Follow angular-local-storage

angular-local-storage Web Site

Other Useful Business Software
All-in-One Inspection Software Icon
All-in-One Inspection Software

flowdit is a connected worker platform tailored for industry needs in commissioning, quality, maintenance, and EHS management.

Optimize Frontline Operations: Elevate Equipment Uptime, Operational Excellence, and Safety with Connected Teams and Data, Including Issue Capture and Corrective Action.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of angular-local-storage!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Browsers, JavaScript Storage Software

Registered

2022-03-07