Skip to content

Commit 19537b4

Browse files
committed
Fixed angular-cache guide.
1 parent cf702b7 commit 19537b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

guide/angular-cache/http.doc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ app.service('myService', function ($http, DSCacheFactory) {
114114
} else {
115115
$http.get('api/data/' + id).success(function (data) {
116116
console.log('time taken for request: ' + (new Date().getTime() - start) + 'ms');
117+
dataCache.put(id, data);
117118
deferred.resolve(data);
118119
});
119120
}

0 commit comments

Comments
 (0)