There are a number of modules available to deal with Local/Session storage from within AngularJs apps. Two of the more popular ones are:



My question - is a separate AngularJS module to handle local or session storage really necessary? They are both very simple APIs. I feel like I am missing something. What do I gain by including an extra module into my code, over just using the regular HTML5 methods? Is there an accepted best practice for handling storage in AngularJS?

  • It never even occurred to me to search for one. As you say, browser storage is exceedingly straightforward. I just used straight JavaScript. I looked at those two projects which you mentioned and cannot see that they add anything. It is possible that we are both overlooking something, but I say just use plain JS. – Mawg says reinstate Monica Apr 12 '17 at 7:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.