我的代码:Angular指令名称:只允许小写字母?
app.directive('abcabc', function(){ alert('directive');}); // working
但
app.directive('abcAbc', function(){ alert('directive');}); // not working !
app.directive('abc-abc', function(){ alert('directive');}); // not working !
难道我做错了吗? 或者Angular指令有特殊的命名规则吗?
谢谢!我把文档看作是“你可以做到这一点”,但显然并非如此。我很惊讶,目前为止只有10个赞助商。 – spikeheap
这也是内嵌Web组件命名空间: http://webcomponents.github.io/articles/web-components-best-practices/ –
我改变了最后一段用的是“正常化”的美国英语形式,而不是英国的“规范化”,因为Angular文档使用英文拼写并在英式拼写中搜索它们不会返回任何结果。 –