diff options
| author | Tobias Bosch | 2013-11-12 15:53:06 -0800 | 
|---|---|---|
| committer | Tobias Bosch | 2013-11-12 16:51:16 -0800 | 
| commit | e1254b266dfa2d4e3756e4317152dbdbcabe44be (patch) | |
| tree | 0d0abdd45cefe6895e8cd2c80329684ce8389d03 /src/ng/compile.js | |
| parent | fa82a31fa6c7ded00c8b7b0a62ba05d409fcbf00 (diff) | |
| download | angular.js-e1254b266dfa2d4e3756e4317152dbdbcabe44be.tar.bz2 | |
fix($compile): correctly handle interpolated style in replace templates
A directive with a template with `replace: true` and an interpolated style at the root element should work correctly.
Closes #4882.
Diffstat (limited to 'src/ng/compile.js')
| -rw-r--r-- | src/ng/compile.js | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/src/ng/compile.js b/src/ng/compile.js index 2e3d7867..d197bbe1 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1588,6 +1588,7 @@ function $CompileProvider($provide) {            dst['class'] = (dst['class'] ? dst['class'] + ' ' : '') + value;          } else if (key == 'style') {            $element.attr('style', $element.attr('style') + ';' + value); +          dst['style'] = (dst['style'] ? dst['style'] + ';' : '') + value;            // `dst` will never contain hasOwnProperty as DOM parser won't let it.            // You will get an "InvalidCharacterError: DOM Exception 5" error if you            // have an attribute like "has-own-property" or "data-has-own-property", etc. | 
