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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
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