Skip to content

Commit c0f0d13

Browse files
oliversalzburggkalpak
authored andcommitted
docs($http): fix default $http cache name
The name of the cache is the string "$http", not the symbol itself. Closes angular#14885
1 parent a82a8a5 commit c0f0d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ function $HttpProvider() {
629629
* * cache a specific response - set config.cache value to TRUE or to a cache object
630630
*
631631
* If caching is enabled, but neither the default cache nor config.cache are set to a cache object,
632-
* then the default `$cacheFactory($http)` object is used.
632+
* then the default `$cacheFactory("$http")` object is used.
633633
*
634634
* The default cache value can be set by updating the
635635
* {@link ng.$http#defaults `$http.defaults.cache`} property or the

0 commit comments

Comments
 (0)