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.

Unable to set style in IE11 for direct that uses replace: true and ngStyle #12324

@langdonx

Description

@langdonx

Using interpolation on the style attribute fails in IE11.

<div style="font-weight: {{weight}};">this is never bold in IE11, but it is in Chrome/Firefox</div>

The typical resolution to this is to use ngStyle, but I can't because the directive I'm using uses ngStyle and is a replace: true directive.

The fiddle illustrates it better:

Also, through the course of my discovery, there are some other ~strange behaviors illustrated here:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions