编译了AngularJS html验证工具

时间:2014-01-29 18:14:07

标签: javascript html angularjs validation

所以我们都知道我们可以在AngularJS中创建指令。如果没有,你应该检查出来。无论如何验证对于我来说是很重要的,可以捕捉那些在javascript中不断出现的令人讨厌的拼写错误的东西。使用camelcase而不是在html中创建指令也是如此。

所以我想知道是否有一种方法可以编译angularJS代码并动态验证html。我在Visual Studios 2012工作,我有点想要新指令的intellisense。

例如

 var AppDirectives = angular.module('AppDirectives', [])
       .directive("myChart", [App.Directives.HighChartsDirective])
       .directive("myTable", [App.Directives.DataTablesDirective])
       .directive("datepicker", [App.Directives.DatePickerDirective]);

是否有工具/方法来获取此代码并通过验证告诉我,我的html中存在'my-chart'标签但不存在'mychart'。

0 个答案:

没有答案