docs($templateCache): use GFM example format rather than <pre> tags

Updated example formatting.

Closes #6068
This commit is contained in:
Jesse Palmer
2014-01-30 22:21:57 -05:00
committed by Vojta Jina
parent 6c82a497c6
commit 9ab594a66c
+5 -9
View File
@@ -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.
*