Closed cicoub13 closed 8 years ago
Okay. That is indeed strange. Will investigate.
Wait.
You should need to do it for both $localStorageProvider and $sessionStorageProvider, as they are 2 different providers and services.
Can you give it a try?
$localStorageProvider.setKeyPrefix('cicoub13-');
$sessionStorageProvider.setKeyPrefix('cicoub13-');
And see if that doesn't fix it for you?
It works for me, thanks for help. Maybe add examples for 2 providers in doc. Sorry for the issue.
No need to be sorry! :)
Yes. I'll create an issue for adding explanation and examples in the readme.
Please note them into Document.
I try to change prefix using setKeyPrefix. Everything is OK in localStorage (cicoub13-test = issue) but prefix is not set in sessionStorage (ngStorage-test = issue).
Config code :
Controller code :
Test with yo angular and version 0.3.10 of ngStorage