Skip to content

Commit

Permalink
Merge pull request #218 from stigok/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
jmdobry committed Feb 28, 2016
2 parents e1e61c9 + c46a3d5 commit aed923f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ angular.module('myApp', ['angular-cache'])
.config(function (CacheFactoryProvider) {
angular.extend(CacheFactoryProvider.defaults, { maxAge: 15 * 60 * 1000 });
})
.service('BookService', function (CacheFactory) {
.service('BookService', function (CacheFactory, $http) {
if (!CacheFactory.get('bookCache')) {
// or CacheFactory('bookCache', { ... });
CacheFactory.createCache('bookCache', {
Expand Down

0 comments on commit aed923f

Please sign in to comment.