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

removed ng-include practice from docs #15153

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/ng/cacheFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
* ```
Expand Down