diff options
| author | Jamie Mason | 2013-09-18 15:00:34 +0100 | 
|---|---|---|
| committer | Brian Ford | 2013-10-02 10:52:31 -0700 | 
| commit | 8e6e3ebad991eaf57a7885549ea3b91932d495c9 (patch) | |
| tree | 9af852154bef89ea424c17302c5a47da894364c2 /src/ng/compile.js | |
| parent | ac72bee40085ea79759eec3543be8175236103ef (diff) | |
| download | angular.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.js | 2 | 
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)$/, ''); | 
