Open
Description
I have tried to upgrade from version 0.15 to 0.2.1, but the latest version cannot read value stored with the previous one.
We store a token by using:
localStorageService.set('token', newToken); // newToken is just alphanumeric characters
And now the following code is crashing:
localStorageService.get('token'); // token is just alphanumeric characters
I had a look at the code and the issue is that now you always apply JSON.parse()
while before you used to call fromJson()
only when it made sense.
Is it possible to revert to the previous behavior? Why has this change been made?