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

Commit 2ca6d65

Browse files
jesselpalmercaitp
authored andcommitted
docs($templateCache): use GFM example format rather than <pre> tags
Updated example formatting. Closes #6068
1 parent 547871e commit 2ca6d65

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/ng/cacheFactory.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -208,17 +208,13 @@ function $CacheFactoryProvider() {
208208
* `$templateCache` service directly.
209209
*
210210
* Adding via the `script` tag:
211+
*
211212
* ```html
212-
* <html ng-app>
213-
* <head>
214-
* <script type="text/ng-template" id="templateId.html">
215-
* This is the content of the template
216-
* </script>
217-
* </head>
218-
* ...
219-
* </html>
213+
* <script type="text/ng-template" id="templateId.html">
214+
* <p>This is the content of the template</p>
215+
* </script>
220216
* ```
221-
*
217+
*
222218
* **Note:** the `script` tag containing the template does not need to be included in the `head` of
223219
* the document, but it must be below the `ng-app` definition.
224220
*

0 commit comments

Comments
 (0)