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

Function wrapTemplate

lib/test/angular/1.7.0/angular.js:10497–10508  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

10495
10496
10497 function wrapTemplate(type, template) {
10498 type = lowercase(type || 'html');
10499 switch (type) {
10500 case 'svg':
10501 case 'math':
10502 var wrapper = window.document.createElement('div');
10503 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
10504 return wrapper.childNodes[0].childNodes;
10505 default:
10506 return template;
10507 }
10508 }
10509
10510
10511 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