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:
committed by
Peter Bacon Darwin
parent
16dccea887
commit
bb8e955a02
@@ -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')
|
||||
* ```
|
||||
|
||||
Reference in New Issue
Block a user