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

Commit bb8e955

Browse files
stevermeisterpetebacondarwin
authored andcommitted
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
1 parent 16dccea commit bb8e955

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/ng/cacheFactory.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,14 @@ function $CacheFactoryProvider() {
385385
* });
386386
* ```
387387
*
388-
* To retrieve the template later, simply use it in your HTML:
389-
* ```html
390-
* <div ng-include=" 'templateId.html' "></div>
388+
* To retrieve the template later, simply use it in your component:
389+
* ```js
390+
* myApp.component('myComponent', {
391+
* template: 'templateId.html'
392+
* });
391393
* ```
392394
*
393-
* or get it via Javascript:
395+
* or get it via $templateCache service:
394396
* ```js
395397
* $templateCache.get('templateId.html')
396398
* ```

0 commit comments

Comments
 (0)