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

docs($templateCache): clarify inline template #9741

Closed
wants to merge 1 commit into from

Conversation

marcin-wosinek
Copy link
Contributor

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

@@ -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.
Copy link
Member

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...

@@ -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.
Copy link
Contributor

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."

Copy link
Contributor Author

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
@caitp
Copy link
Contributor

caitp commented Oct 22, 2014

just gonna see how that renders, because I might have got the syntax wrong =P it's probably good though

@caitp
Copy link
Contributor

caitp commented Oct 22, 2014

yeah should be {@link ...} don't worry I'll fix it and land =)

caitp pushed a commit that referenced this pull request Oct 22, 2014
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
@caitp
Copy link
Contributor

caitp commented Oct 22, 2014

merg'd!

@caitp caitp closed this in 5d7763e Oct 22, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants