Well... in angular 1.x.y is
angular.module('myApp', []).directive('myDirective', function(){
return {
templateUrl : function(tElement, iAttrs){
return 'http://' + iAttrs.myDirective // More...
}
}
});
But.. In Angular2
@Component({
selector: 'my-Directive',
templateUrl: 'http://???'
})
class HelloWorld {
}
Well, in the doc say only a String
. As it is handled to be a function in angular2 ?