Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

When replace=true in the directive, the style of the outmost element will be duplicate #13757

Closed
kinglcc opened this issue Jan 13, 2016 · 1 comment

Comments

@kinglcc
Copy link

kinglcc commented Jan 13, 2016

The javascript code:

buildTools.directive('buildStatus', function () {   
            return {   
                restrict: 'E',    
                replace: true,   
                scope: { },   
                transclude: true,   
                template: '<a style="color:#fefefe;">test</a>'  
            }    
   });

The html code:

<build-status></build-status>

The render html code:

<a style="color:#fefefe;;color:#fefefe;">test</a>

@Narretz
Copy link
Contributor

Narretz commented Jan 13, 2016

This is a known issue (#6239), which is unlikely to get fixed. Remember that replace: true is deprecated, and its use is discouraged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants