I\'ve got a recursive Angular directive that uses a template variable and gets compiled in the link function.
link
Problem is, that my template has gotten re
I prefer to use $http to load template if its size is bigger:-
$http.get('mytemp.html').then(function(response) { element.html(response.data); $compile(element.contents())(scope); });