Local Storage and Cache .. Which is better?


Local Storage and Cache which is better to save login details.? Is there any difference in them
And how to save data into cache.
I did save data into local storage successfully using the following code :



What do you refer to by “Cache”?

Also have a look at Ionic Storage which is simple to use and can use different backends (like the ultra stable sqlite on native platforms): https://ionicframework.com/docs/storage/