docs($templateCache): use GFM example format rather than <pre> tags
Updated example formatting. Closes #6068
This commit is contained in:
committed by
Caitlin Potter
parent
547871e779
commit
2ca6d650e8
@@ -208,17 +208,13 @@ function $CacheFactoryProvider() {
|
||||
* `$templateCache` service directly.
|
||||
*
|
||||
* Adding via the `script` tag:
|
||||
*
|
||||
* ```html
|
||||
* <html ng-app>
|
||||
* <head>
|
||||
* <script type="text/ng-template" id="templateId.html">
|
||||
* This is the content of the template
|
||||
* </script>
|
||||
* </head>
|
||||
* ...
|
||||
* </html>
|
||||
* <script type="text/ng-template" id="templateId.html">
|
||||
* <p>This is the content of the template</p>
|
||||
* </script>
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* **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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user