Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit efedc64

Browse files
marcin-wosinekcaitp
authored andcommitted
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
1 parent 34230b3 commit efedc64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/cacheFactory.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,8 @@ function $CacheFactoryProvider() {
369369
* ```
370370
*
371371
* **Note:** the `script` tag containing the template does not need to be included in the `head` of
372-
* the document, but it must be below the `ng-app` definition.
372+
* the document, but it must be a descendent of the {@link ng.$rootElement $rootElement} (IE,
373+
* element with ng-app attribute), otherwise the template will be ignored.
373374
*
374375
* Adding via the $templateCache service:
375376
*

0 commit comments

Comments
 (0)