I have a directive myDirective with variable type. If I run I want the directive to use templateUrl: x-template.html. If I do <
You can work around this issue using ng-include inside compile:
ng-include
compile
app.directive('myDirective', function() { return { restrict: 'E', compile: function(element, attrs) { element.append(''); } } });
fiddle