小编Tan*_*ova的帖子

模板内的角度注释属性

我可以在 html 标记中注释属性吗?

我需要做这样的事情:

<hero-detail 
     <!--comments goes here-->
     hero="currentHero">
</hero-detail>
Run Code Online (Sandbox Code Playgroud)

但这不起作用。怎么做到呢?

angular-template angular

4
推荐指数
1
解决办法
1454
查看次数

标签 统计

angular ×1

angular-template ×1