如何在Netbeans 7.4 IDE中将自定义AngularJS指令添加到html验证器?

前端之家收集整理的这篇文章主要介绍了如何在Netbeans 7.4 IDE中将自定义AngularJS指令添加到html验证器?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我最近从 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”属性以避免此错误,但我宁愿不这样做,因为它会抑制真正的错误.

原文链接:https://www.f2er.com/angularjs/141776.html

猜你在找的Angularjs相关文章