aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/cacheFactory.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/cacheFactory.js')
-rw-r--r--src/ng/cacheFactory.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js
index 9371ca58..ea0195f6 100644
--- a/src/ng/cacheFactory.js
+++ b/src/ng/cacheFactory.js
@@ -6,9 +6,9 @@
*
* @description
* Factory that constructs cache objects and gives access to them.
- *
+ *
* ```js
- *
+ *
* var cache = $cacheFactory('cacheId');
* expect($cacheFactory.get('cacheId')).toBe(cache);
* expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
@@ -17,8 +17,8 @@
* cache.put("another key", "another value");
*
* // We've specified no options on creation
- * expect(cache.info()).toEqual({id: 'cacheId', size: 2});
- *
+ * expect(cache.info()).toEqual({id: 'cacheId', size: 2});
+ *
* ```
*
*
@@ -199,7 +199,7 @@ function $CacheFactoryProvider() {
* The first time a template is used, it is loaded in the template cache for quick retrieval. You
* can load templates directly into the cache in a `script` tag, or by consuming the
* `$templateCache` service directly.
- *
+ *
* Adding via the `script` tag:
* ```html
* <html ng-app>
@@ -211,29 +211,29 @@ function $CacheFactoryProvider() {
* ...
* </html>
* ```
- *
+ *
* **Note:** the `script` tag containing the template does not need to be included in the `head` of
* the document, but it must be below the `ng-app` definition.
- *
+ *
* Adding via the $templateCache service:
- *
+ *
* ```js
* var myApp = angular.module('myApp', []);
* myApp.run(function($templateCache) {
* $templateCache.put('templateId.html', 'This is the content of the template');
* });
* ```
- *
+ *
* To retrieve the template later, simply use it in your HTML:
* ```html
* <div ng-include=" 'templateId.html' "></div>
* ```
- *
+ *
* or get it via Javascript:
* ```js
* $templateCache.get('templateId.html')
* ```
- *
+ *
* See {@link ng.$cacheFactory $cacheFactory}.
*
*/