[Representation] Add JSDoc

This commit is contained in:
Victor Woeltjen 2015-10-30 12:38:32 -07:00
parent d5f1d45759
commit a38d4829eb

View File

@ -46,6 +46,14 @@ define(
this.$log = $log; 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.<string>} a promise for the HTML content of
* the template
* @private
*/
TemplateLinker.prototype.load = function (templateUrl) { TemplateLinker.prototype.load = function (templateUrl) {
return this.$templateRequest( return this.$templateRequest(
this.$sce.trustAsResourceUrl(templateUrl), this.$sce.trustAsResourceUrl(templateUrl),