Joined May 2014
·

Constantine

Pune / Shillong
·
·

Nevermind. We can do something like this:


var compiled = $compile(response.data)(scope); element.replaceWith(compiled); element = compiled; </code> </pre> Thanks for the nice article though.

Using element for accessing the DOM e.g element.find(".child-class") does not work because of the element.replaceWith(). Any cleaner solution?

Achievements
1 Karma
0 Total ProTip Views