MCPcopy Index your code
hub / github.com/angular-ui/ui-router / wrapTemplate

Function wrapTemplate

test/angular/1.7/angular.js:11015–11026  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

11013
11014
11015 function wrapTemplate(type, template) {
11016 type = lowercase(type || 'html');
11017 switch (type) {
11018 case 'svg':
11019 case 'math':
11020 var wrapper = window.document.createElement('div');
11021 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
11022 return wrapper.childNodes[0].childNodes;
11023 default:
11024 return template;
11025 }
11026 }
11027
11028
11029 function getTrustedAttrContext(nodeName, attrNormalizedName) {

Callers 3

compileFunction · 0.70
applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls 1

lowercaseFunction · 0.70

Tested by

no test coverage detected