tymondesigns / angular-locker

🗄️ A simple & configurable abstraction for local/session storage in angular js projects

Home Page:https://npm.im/angular-locker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doc should encourage minification-friendly practice

bonatoc opened this issue · comments

.factory('MyFactory', function MyFactory(locker) {
locker.put('someKey', 'someVal');
});

should be :

.factory('MyFactory', ['locker', function MyFactory(locker) {
locker.put('someKey', 'someVal');
}]);

Yea I suppose that would help people new to the framework... job done

Thanks