gsklee / ngStorage

localStorage and sessionStorage done right for AngularJS.
MIT License
2.34k stars 461 forks source link

delete $localStorage.storageName not working #277

Open rabin-naga opened 6 years ago

rabin-naga commented 6 years ago

delete $localStorage.storageName clears the localStorage but when we add a new value the old values are still there.

where as localStorage.removeItem('storageName') resets the localStorage to blank/null ie storageName = [];

How can I use delete $localStorage.storageName to reset the localStorage to blank?

csimpi commented 5 years ago

I just wanted to report the same. I switched back to the raw localstorage temporary, it works as excepted.