diff options
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.   * | 
