diff options
| author | Caitlin Potter | 2014-02-06 14:02:18 +0000 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:40 +0000 | 
| commit | f7d28cd377f06224247b950680517a187a7b6749 (patch) | |
| tree | 20203b9f7bf60748bb752f325b1869415352a6f3 /src/ng/cacheFactory.js | |
| parent | 2e641ac49f121a6e2cc70bd3879930b44a8a7710 (diff) | |
| download | angular.js-f7d28cd377f06224247b950680517a187a7b6749.tar.bz2 | |
docs(all): convert <pre>/</pre> snippets to GFM snippets
Diffstat (limited to 'src/ng/cacheFactory.js')
| -rw-r--r-- | src/ng/cacheFactory.js | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index 32d179b4..9371ca58 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -7,7 +7,7 @@   * @description   * Factory that constructs cache objects and gives access to them.   *  - * <pre> + * ```js   *    *  var cache = $cacheFactory('cacheId');   *  expect($cacheFactory.get('cacheId')).toBe(cache); @@ -19,7 +19,7 @@   *  // We've specified no options on creation   *  expect(cache.info()).toEqual({id: 'cacheId', size: 2});    *  - * </pre> + * ```   *   *   * @param {string} cacheId Name or id of the newly created cache. @@ -201,7 +201,7 @@ function $CacheFactoryProvider() {   * `$templateCache` service directly.   *    * Adding via the `script` tag: - * <pre> + * ```html   * <html ng-app>   * <head>   * <script type="text/ng-template" id="templateId.html"> @@ -210,29 +210,29 @@ function $CacheFactoryProvider() {   * </head>   *   ...   * </html> - * </pre> + * ```   *    * **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:   *  - * <pre> + * ```js   * var myApp = angular.module('myApp', []);   * myApp.run(function($templateCache) {   *   $templateCache.put('templateId.html', 'This is the content of the template');   * }); - * </pre> + * ```   *    * To retrieve the template later, simply use it in your HTML: - * <pre> + * ```html   * <div ng-include=" 'templateId.html' "></div> - * </pre> + * ```   *    * or get it via Javascript: - * <pre> + * ```js   * $templateCache.get('templateId.html') - * </pre> + * ```   *    * See {@link ng.$cacheFactory $cacheFactory}.   * | 
