diff options
| author | Jesse Palmer | 2014-01-30 22:21:57 -0500 | 
|---|---|---|
| committer | Caitlin Potter | 2014-03-17 20:12:00 -0400 | 
| commit | 2ca6d650e8a13cee28f11c38622cab231787325f (patch) | |
| tree | bc1a248132b1b31bca88db2b825a1418486103ba /src/ng | |
| parent | 547871e779f7a1e340c03296405735415764a0e8 (diff) | |
| download | angular.js-2ca6d650e8a13cee28f11c38622cab231787325f.tar.bz2 | |
docs($templateCache): use GFM example format rather than <pre> tags
Updated example formatting.
Closes #6068
Diffstat (limited to 'src/ng')
| -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.   * | 
