I am trying to migrate from angular1 to angular2 (on Javascript), how would I write this in Angular2? I am awfully confused Thank you module.directive('asiPath', function($compile) { return function(scope, element, attrs) { scope.$watch( function(scope) { return scope.$eval(attrs.asiPath); }, function(value) { asimon.template.load(element, attrs, scope); } ); }; }); Continue reading...