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

lockerProvider throws error when trying to setDefaultDriver #15

Closed cheahkhing closed 9 years ago

cheahkhing commented 9 years ago

I tried to use lockerProvider, but it seems like it's not working as documented:

.config(['lockerProvider', function config(lockerProvider) { lockerProvider.setDefaultDriver('session') .setDefaultNamespace('myAppName') .setSeparator('.') .setEventsEnabled(false); }]);

I tried to search for the configuration in the source code, I don't see any of them. Is this still supported?

tymondesigns commented 9 years ago

It is still supported for the current version (1.2.1)

The master branch is going to be the next release (2.0.0) and I have simplified the way to provide defaults to the lockerProvider - see here