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') * ```