我最近从
Eclipse切换到Netbeans 7.4 IDE,并想知道如何向html验证器
添加自定义Angular指令.
如果你在你的html文件中添加这样的东西:
<div>
<my-directive></my-directive>
</div>
将显示一个错误说明:
"Element "my-directive" not allowed as child of element "div" in this context."
我可以在html验证器中禁用“elements”属性以避免此错误,但我宁愿不这样做,因为它会抑制真正的错误.