Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdobry committed Aug 2, 2015
1 parent a320166 commit 70a5884
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 @@ -121,7 +121,7 @@ angular.module('app', ['angular-cache']).config(function (CacheFactoryProvider)
deleteOnExpire: 'aggressive',
onExpire: function (key, value) {
var _this = this; // "this" is the cache in which the item expired
$http.get(key).success(function (data) {
angular.injector(['ng']).get('$http').get(key).success(function (data) {
_this.put(key, data);
});
}
Expand Down

0 comments on commit 70a5884

Please sign in to comment.