From a38d4829ebaa6f048d9077b2bef0410e6f3d814c Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 30 Oct 2015 12:38:32 -0700 Subject: [PATCH] [Representation] Add JSDoc --- platform/representation/src/TemplateLinker.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/representation/src/TemplateLinker.js b/platform/representation/src/TemplateLinker.js index b462afa626..f3824c797f 100644 --- a/platform/representation/src/TemplateLinker.js +++ b/platform/representation/src/TemplateLinker.js @@ -46,6 +46,14 @@ define( this.$log = $log; } + /** + * Load a template from the given URL. This request will be handled + * via `$templateRequest` to ensure caching et cetera. + * @param {string} the URL for the template + * @returns {Promise.} a promise for the HTML content of + * the template + * @private + */ TemplateLinker.prototype.load = function (templateUrl) { return this.$templateRequest( this.$sce.trustAsResourceUrl(templateUrl),