From b4387443872ae2ad9f0c4bafefa1884e8b6f76d9 Mon Sep 17 00:00:00 2001 From: marcin-wosinek Date: Wed, 22 Oct 2014 13:28:54 +0200 Subject: [PATCH] docs($templateCache): clarify inline template Current doc doesn't state required tag location clear enough. It was [stack overflow|http://stackoverflow.com/a/16125138] where I've found that requirement --- src/ng/cacheFactory.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index c5914649d556..64be3d0f7e45 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -369,7 +369,8 @@ function $CacheFactoryProvider() { * ``` * * **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. + * the document, but it must be a descendent of the @{link ng.$rootElement $rootElement} (IE, + * element with ng-app attribute), otherwise the template will be ignored. * * Adding via the $templateCache service: *