66 *
77 * @description
88 * Factory that constructs cache objects and gives access to them.
9- *
9+ *
1010 * ```js
11- *
11+ *
1212 * var cache = $cacheFactory('cacheId');
1313 * expect($cacheFactory.get('cacheId')).toBe(cache);
1414 * expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined();
1717 * cache.put("another key", "another value");
1818 *
1919 * // We've specified no options on creation
20- * expect(cache.info()).toEqual({id: 'cacheId', size: 2});
21- *
20+ * expect(cache.info()).toEqual({id: 'cacheId', size: 2});
21+ *
2222 * ```
2323 *
2424 *
@@ -199,7 +199,7 @@ function $CacheFactoryProvider() {
199199 * The first time a template is used, it is loaded in the template cache for quick retrieval. You
200200 * can load templates directly into the cache in a `script` tag, or by consuming the
201201 * `$templateCache` service directly.
202- *
202+ *
203203 * Adding via the `script` tag:
204204 * ```html
205205 * <html ng-app>
@@ -211,29 +211,29 @@ function $CacheFactoryProvider() {
211211 * ...
212212 * </html>
213213 * ```
214- *
214+ *
215215 * **Note:** the `script` tag containing the template does not need to be included in the `head` of
216216 * the document, but it must be below the `ng-app` definition.
217- *
217+ *
218218 * Adding via the $templateCache service:
219- *
219+ *
220220 * ```js
221221 * var myApp = angular.module('myApp', []);
222222 * myApp.run(function($templateCache) {
223223 * $templateCache.put('templateId.html', 'This is the content of the template');
224224 * });
225225 * ```
226- *
226+ *
227227 * To retrieve the template later, simply use it in your HTML:
228228 * ```html
229229 * <div ng-include=" 'templateId.html' "></div>
230230 * ```
231- *
231+ *
232232 * or get it via Javascript:
233233 * ```js
234234 * $templateCache.get('templateId.html')
235235 * ```
236- *
236+ *
237237 * See {@link ng.$cacheFactory $cacheFactory}.
238238 *
239239 */
0 commit comments