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

Function wrapTemplate

test/angular/1.5/angular.js:9963–9974  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

9961
9962
9963 function wrapTemplate(type, template) {
9964 type = lowercase(type || 'html');
9965 switch (type) {
9966 case 'svg':
9967 case 'math':
9968 var wrapper = window.document.createElement('div');
9969 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
9970 return wrapper.childNodes[0].childNodes;
9971 default:
9972 return template;
9973 }
9974 }
9975
9976
9977 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