MCPcopy
hub / github.com/likeastore/ngDialog / loadTemplate

Function loadTemplate

js/ngDialog.js:754–768  ·  view source on GitHub ↗
(tmpl)

Source from the content-addressed store, hash-verified

752 }
753
754 function loadTemplate (tmpl) {
755 if (!tmpl) {
756 return 'Empty template';
757 }
758
759 if (angular.isString(tmpl) && options.plain) {
760 return tmpl;
761 }
762
763 if (typeof options.cache === 'boolean' && !options.cache) {
764 return loadTemplateUrl(tmpl, {cache: false});
765 }
766
767 return loadTemplateUrl(tmpl, {cache: $templateCache});
768 }
769 },
770
771 /*

Callers 1

ngDialog.jsFile · 0.85

Calls 1

loadTemplateUrlFunction · 0.85

Tested by

no test coverage detected