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

Function wrapTemplate

test/angular/1.6/angular.js:10491–10502  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

10489
10490
10491 function wrapTemplate(type, template) {
10492 type = lowercase(type || 'html');
10493 switch (type) {
10494 case 'svg':
10495 case 'math':
10496 var wrapper = window.document.createElement('div');
10497 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
10498 return wrapper.childNodes[0].childNodes;
10499 default:
10500 return template;
10501 }
10502 }
10503
10504
10505 function getTrustedContext(node, attrNormalizedName) {

Callers 3

compileFunction · 0.70
applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls 1

lowercaseFunction · 0.70

Tested by

no test coverage detected