【发布时间】:2016-05-19 06:56:20
【问题描述】:
在 AngularJS (1.x) 中,我们可以在 HTML 注释中定义指令:
<!-- directive: my-directive-name -->
见How to set up attributes in angularjs directive restricted to comments
如何在 Angular 2 组件选择器中执行此操作(没有 restrict: 'M' 选项)?
更新:看到这个SO问题How to remove/replace the angular2 component's selector tag from HTML,好像replace也不见了……
【问题讨论】:
标签: angular angular2-directives