local and session storage

18 views
Skip to first unread message

Christian Pérez Ortiz

unread,
Jul 19, 2016, 2:57:41 PM7/19/16
to AngularJS
Hi!

I'm starting with angular and front web development in general and lately I've been looking at storage.

I found that I could use ngCookies for local storage. Besides that, I read I sould be using html5 localstorage.

I also found the angular-local-storage https://github.com/grevory/angular-local-storage  and  the ngStorage  https://github.com/gsklee/ngStorage projects. The angular-local-storage looks to be more frequently updated.

I'm about to implement local storage in my academic project, so I don't know if I should go on with html5 storage or to include one of these two projects. How do you manage your local storage, guys?

Regards!

Sander Elias

unread,
Jul 19, 2016, 9:53:26 PM7/19/16
to AngularJS
Hi Cristian,

Go with the native solution. Unless one of the packages you suggested actually solve something for you that you can't tackle yourself. Keeping your 3rth party dependencies as low as possible is always the best way to go.
As you are starting, it might be a good idea to read the source of the packages you suggested, as it will provide you with some clues of things that might be relevant in this area. 

Regards
Sander
Reply all
Reply to author
Forward
0 new messages