diff options
| author | Jesse Palmer | 2014-01-30 22:21:57 -0500 | 
|---|---|---|
| committer | Vojta Jina | 2014-03-21 11:42:18 -0700 | 
| commit | 9ab594a66c6385434132c8ffc1ed9ed17bae8298 (patch) | |
| tree | 068801c3a654c187e78f15b8035b1f455b85cd55 | |
| parent | 6c82a497c678c2392d9902bad18640418fe1e745 (diff) | |
| download | angular.js-9ab594a66c6385434132c8ffc1ed9ed17bae8298.tar.bz2 | |
docs($templateCache): use GFM example format rather than <pre> tags
Updated example formatting.
Closes #6068
| -rw-r--r-- | src/ng/cacheFactory.js | 14 | 
1 files changed, 5 insertions, 9 deletions
| diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index c16c1e1f..5d7c8c65 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -208,17 +208,13 @@ function $CacheFactoryProvider() {   * `$templateCache` service directly.   *   * Adding via the `script` tag: + *    * ```html - * <html ng-app> - * <head> - * <script type="text/ng-template" id="templateId.html"> - *   This is the content of the template - * </script> - * </head> - *   ... - * </html> + *   <script type="text/ng-template" id="templateId.html"> + *     <p>This is the content of the template</p> + *   </script>   * ``` - * + *    * **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.   * | 
