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

Closes #9741
This commit is contained in:
marcin-wosinek
2014-10-22 13:28:54 +02:00
committed by Caitlin Potter
parent 34230b30b7
commit efedc643d1

View File

@@ -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:
*