-
Notifications
You must be signed in to change notification settings - Fork 27.4k
docs($templateCache): clarify inline template #9741
Conversation
@@ -369,7 +369,7 @@ 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 inside `ng-app` tag. Otherwise the template will be ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ng-app
is not a tag...
e388f28
to
39740e0
Compare
@@ -369,7 +369,7 @@ 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 inside tag with `ng-app`. Otherwise the template will be ignored. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about "must be a descendant of the @{link ng.$rootElement $rootElement} (IE, element with ng-app attribute), otherwise the template will be ignored."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks pretty cool. Updating..
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
39740e0
to
b438744
Compare
just gonna see how that renders, because I might have got the syntax wrong =P it's probably good though |
yeah should be |
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
merg'd! |
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