Skip to content

Commit 70a5884

Browse files
committed
Update README
1 parent a320166 commit 70a5884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ angular.module('app', ['angular-cache']).config(function (CacheFactoryProvider)
121121
deleteOnExpire: 'aggressive',
122122
onExpire: function (key, value) {
123123
var _this = this; // "this" is the cache in which the item expired
124-
$http.get(key).success(function (data) {
124+
angular.injector(['ng']).get('$http').get(key).success(function (data) {
125125
_this.put(key, data);
126126
});
127127
}

0 commit comments

Comments
 (0)