Comments (3)
Great idea! I have added functionality for this in version v0.10.2.
from angular-webstorage.
After sifting through the AngularJS docs regarding $provide
(http://docs.angularjs.org/api/AUTO.$provide), I'm adding a heads up for the code specified above.
It turns out you cannot inject services (created via factories, as is webStorage
) into your app’s configuration function, but you may instead setup webStorage
in your app’s run function, e.g.:
var App = angular.module('App', ['webStorageModule']);
App.run(function (webStorage) {
webStorage.order('session', 'local', 'memory');
});
from angular-webstorage.
Thanks a lot!
from angular-webstorage.
Related Issues (15)
- Trailing commas of death HOT 1
- throw access denied exception on IE10/Windows8 when IE10 under Protected Mode. HOT 3
- change bower dependency to the latest angularjs HOT 1
- version 0.11.0 not in bower HOT 1
- Error on has(key) check if not set HOT 3
- Session storage should not fallback to cookies HOT 2
- Naming of `add()` HOT 2
- Add to Bower registry? HOT 1
- Allow setting empty object
- New release version
- Clearing sessionStorage contains slight bug HOT 2
- Not actually using the errorName constant HOT 1
- Is LocalStorage always supported? HOT 2
- Would be great to have add(key,value) appending to existing values instead of rewriting it and get(key) should return an array of values for key? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-webstorage.