From 61e5001bbb5941dc4f4dd5583694026a459a75a6 Mon Sep 17 00:00:00 2001 From: Stepan Suvorov Date: Sun, 18 Sep 2016 18:57:51 +0200 Subject: [PATCH] removed ng-include practice from docs --- src/ng/cacheFactory.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ng/cacheFactory.js b/src/ng/cacheFactory.js index 84e91c9883bd..3a8f5f5c7e67 100644 --- a/src/ng/cacheFactory.js +++ b/src/ng/cacheFactory.js @@ -385,12 +385,14 @@ function $CacheFactoryProvider() { * }); * ``` * - * To retrieve the template later, simply use it in your HTML: - * ```html - *
+ * 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') * ```