Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
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

Description

@kinglcc

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>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions