Well ... in angular 1.xy
angular.module('myApp', []).directive('myDirective', function(){ return { templateUrl : function(tElement, iAttrs){ return 'http://' + iAttrs.myDirective
But .. In Angular2
@Component({ selector: 'my-Directive', templateUrl: 'http://???' }) class HelloWorld { }
Well, in doc they only say String . Since it is being treated as a function in angular2?
source share