tymondesigns / angular-locker

🗄️ A simple & configurable abstraction for local/session storage in angular js projects
https://npm.im/angular-locker
MIT License
314 stars 42 forks source link

Update angular-locker.js #2

Closed danilo-valente closed 9 years ago

danilo-valente commented 9 years ago

This way locker.get('notExists', false) will return false instead of undefined.

Before:

Now:

tymondesigns commented 9 years ago

Yea that makes sense, thanks

tymondesigns commented 9 years ago

I will add some tests to back this up too