In AngularJS (1.x) we can define a directive in an HTML comment:
<!-- directive: my-directive-name -->
See How to set up attributes in angularjs directive restricted to comments
How can I do this in an Angular 2 component selector (there is no restrict: 'M'
option)?
Update: See this SO question How to remove/replace the angular2 component's selector tag from HTML, it seems that replace
is also gone...