I basically have a JSON file with from which im building some blocks. One of the properties of the JSON is a background-image path for a div.
Something along the lines of:
[
..
{
..
..
"smallimg": "../assets/images/dummy/dummy-intro-1.jpg",
..
]
Then once on my page, i have something like:
<div class="fact-img" style="{{facts.smallimg}}" ...
I had background-image as part of my JSON string, that didnt work, the one above doesnt work either even placing the background-image declaration just before it.
For some reason it seems as ANYTHING i place inside the style tag is not being recognized by IE ( im using IE10 / IE9 ).
Also, i place my {{facts.smallimg}} anywhere else outside of the style tag, it shows up fine. Its only when its placed inside the style tag that it doesnt render.
Btw, this is working fine on other browsers.
Any ideas why this isnt working ?
Plunker code: http://plnkr.co/edit/vXIiTc1P7QUougHJl2Cq
Please look for this part on each fact:
<div class="fact-img" style="background-image:url('../assets/images/dummy/dummy-intro-1.jpg')" data-test="background-image:url('../assets/images/dummy/dummy-intro-1.jpg')">
The part where the style="" is doesnt get rendered at all on any version of IE.