Well, for a workaround you could just use ng-include
in a normal <div>
that you render with $compile
, so something like:
link: function(scope,element,attrs) {
var htmlText = '<div ng-include="path/to/template.html"></div>';
$compile(htmlText)(scope, function(_element,_scope) {
element.replaceWith(_element);
});
[EDIT]
There is even a nicer solution in this Thread. The Path depends on how your Webserver is configured. But usually yes, its the relative Path of your Index.html.