Skip to content
This repository has been 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

Closed
langdonx opened this issue Jul 10, 2015 · 2 comments
Closed

Comments

@langdonx
Copy link

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:

@langdonx langdonx changed the title Interpolated style attribute has interpolated values Unable to set style in IE11 for direct that uses replace: true and ngStyle Jul 10, 2015
@lgalfaso
Copy link
Contributor

I will leave this open, but this touches two things, one deprecated and the other unsupported. The first being replace: true the second having top level transclude: 'element'in a directive template.

Fixing this would imply a relatively big refactor on how compilation works, and there is a reasonable chance that it will not be fixed soon.

@Narretz
Copy link
Contributor

Narretz commented Feb 22, 2017

This basically touches on 2 known issues:

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

3 participants