docs(cacheFactory): remove ng-include practice from docs

Generally we don't use `ngInclude` any more, so this commit updates the
example snippet to use component instead.

Closes #15153
This commit is contained in:
Stepan Suvorov
2016-09-18 18:57:51 +02:00
committed by Peter Bacon Darwin
parent 16dccea887
commit bb8e955a02
+6 -4
View File
@@ -385,12 +385,14 @@ function $CacheFactoryProvider() {
* });
* ```
*
* To retrieve the template later, simply use it in your HTML:
* ```html
* <div ng-include=" 'templateId.html' "></div>
* To retrieve the template later, simply use it in your component:
* ```js
* myApp.component('myComponent', {
* template: 'templateId.html'
* });
* ```
*
* or get it via Javascript:
* or get it via $templateCache service:
* ```js
* $templateCache.get('templateId.html')
* ```