标签: angular
我在div元素中添加了一个属性指令。我可以点击某个按钮删除它吗?
例如:
<div appDir [bgColor]="someDynamicColorValue" [innerHTML]="comment | trustHTML"><div> <button type="button">Submit</button>
在上面的示例代码中,我可以通过单击提交按钮来删除属性指令appDir(通过设置为空值)吗?
基本上我想禁用与该指令相关的所有功能。