I have a legacy application that has some content inserted into the DOM via jQuery. I would like the legacy parts of the codebase to be responsible for compiling the html th
Append the element to the target first, then compile it.
html = angular.element(html); target = angular.element(target); target.append(html); html = $compile(html)($scope)
http://jsfiddle.net/f3dkp291/16/