aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/compile.js
diff options
context:
space:
mode:
authorJamie Mason2013-09-18 15:00:34 +0100
committerBrian Ford2013-10-02 10:52:31 -0700
commit8e6e3ebad991eaf57a7885549ea3b91932d495c9 (patch)
tree9af852154bef89ea424c17302c5a47da894364c2 /src/ng/compile.js
parentac72bee40085ea79759eec3543be8175236103ef (diff)
downloadangular.js-8e6e3ebad991eaf57a7885549ea3b91932d495c9.tar.bz2
fix($compile): ng-attr to support dash separated attribute names
Diffstat (limited to 'src/ng/compile.js')
-rw-r--r--src/ng/compile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js
index 2dd0e6ea..4f466292 100644
--- a/src/ng/compile.js
+++ b/src/ng/compile.js
@@ -631,7 +631,7 @@ function $CompileProvider($provide) {
// support ngAttr attribute binding
ngAttrName = directiveNormalize(name);
if (NG_ATTR_BINDING.test(ngAttrName)) {
- name = ngAttrName.substr(6).toLowerCase();
+ name = snake_case(ngAttrName.substr(6), '-');
}
var directiveNName = ngAttrName.replace(/(Start|End)$/, '');