Compile a template without passing scope
问题 Question In AngularJS, is there a way to convert a string template into markup without using scope or a directive? Explanation I have a service which allows me to create new angular apps dynamically. It builds up the DOM for the new app, then runs angular.boostrap on the element. Currently, the DOM is created like this: var element = document.createElement('div'); element.setAttribute('app', ''); element.setAttribute('size', 'small'); ... element.className = 'app layout--relative'; There are