mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-15 12:09:02 +08:00
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:
committed by
Caitlin Potter
parent
34230b30b7
commit
efedc643d1
@@ -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:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user