I have one question.
Is it possible / and how / to write inline css style using angular variables?
<div style="background: transparent url({{eventInfo.eventHeaderImg}}) top center no-repeat;"></div>
This is my output
"NetworkError: 404 Not Found - http://test/eventInfo.eventHeaderImg"
So I see it didn't render this value.
I know it's possible to change this in controller, but is it doable with my approach?
Thanks
eventInfo.eventHeaderImg
variable in current$scope
hold'eventInfo.eventHeaderImg'
value? – blint 2 days ago{{eventInfo.eventHeaderImg}}
in thestyle
attribute as an argument tourl
(the exact same thing you do in your question). And it works fine. I think there was a bug with thestyle
attribute in earlier versions of Angular. What version are you using ? – ExpertSystem 2 days ago