MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / wrapTemplate

Function wrapTemplate

code/songhop/www/lib/angular/angular.js:8007–8018  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

8005
8006
8007 function wrapTemplate(type, template) {
8008 type = lowercase(type || 'html');
8009 switch (type) {
8010 case 'svg':
8011 case 'math':
8012 var wrapper = document.createElement('div');
8013 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
8014 return wrapper.childNodes[0].childNodes;
8015 default:
8016 return template;
8017 }
8018 }
8019
8020
8021 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