10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ng-include
1 parent 13c01d7 commit 871d01fCopy full SHA for 871d01f
src/ng/cacheFactory.js
@@ -385,12 +385,14 @@ function $CacheFactoryProvider() {
385
* });
386
* ```
387
*
388
- * To retrieve the template later, simply use it in your HTML:
389
- * ```html
390
- * <div ng-include=" 'templateId.html' "></div>
+ * To retrieve the template later, simply use it in your component:
+ * ```js
+ * myApp.component('myComponent', {
391
+ * template: 'templateId.html'
392
+ * });
393
394
- * or get it via Javascript:
395
+ * or get it via $templateCache service:
396
* ```js
397
* $templateCache.get('templateId.html')
398
0 commit comments