Closed shyam-habarakada closed 10 years ago
@shyam-habarakada Well, thanks for trying out the 3.0.0 beta. I'll take a look!
@shyam-habarakada Should be fixed in 3.0.0-beta.2
Great, thanks. I will try it out. What's the general status of the beta? We're writing a new app and would like to just use 3.0 if core functionality is stable. We will mainly use session and memory caching (no local storage)
@shyam-habarakada I'd like to say that core functionality is stable, but I just released the beta yesterday, so take my assertion of stability with a grain of salt. If however, you still just want to use start using 3.x.x, I am prepared to fix any new bugs as fast as possible.
angular.module('mmar', ['angular-data.DSCacheFactory' ... ... .run(function ($angularCacheFactory) { var myCache = $angularCacheFactory('myCache', { storageMode: 'localStorage' }); })
Uncaught Error: Unknown provider: $angularCacheFactoryProvider <- $angularCacheFactory
Using 3.0 I know $angularCacheFactory is probably incorrect but, I can't figure what it should be? Think its supposed to be DSCacheFactory?
Thanks, Dan
If you're on 3.x.x, change $angularCacheFactory
to DSCacheFactory
and it
will work
GcdService.$inject = ['$rootScope', '$q', 'DSCacheFactory', 'loginService', 'dummyLoginService','rulesFile', '$filter'];
function GcdService($rootScope, $q, DSCacheFactory, loginService, dummyLoginService,rulesFile, $filter) {
var gcdCache = DSCacheFactory('gcdCache', { storageMode: 'localStorage' });
...
Error: Unknown provider: $rootElementProvider <- $rootElement <- $location
@dbush3721 DSCacheFactory
does not depend on the $location
service at all. One of those other dependencies must be the problem.
The code in question looks like
And my app.services module has a dependency on
'angular-data.DSCacheFactory'