Hello,

you need to change stroke="{{data.color}}" to stroke$="{{data.color}}" and 
it should work 100%.

Reasoning for that = 
https://www.polymer-project.org/1.0/docs/devguide/data-binding.html

Hope this helps.



On Monday, November 30, 2015 at 2:20:04 PM UTC+4, [email protected] wrote:
>
> Hello,
>
> i'm trying to set a stroke dynamically on a circle element like this :
>
> <circle class="circle_animation" r="45" cy="50" cx="50" stroke-width="4" 
> stroke="{{data.color}}" fill="none"/>
> but it doesn't work...the circle stays white.
>
> data.color is well set as 
> <div>{{data.color}}</div>
> prints the color.
>
> When I do
> <circle class="circle_animation" r="45" cy="50" cx="50" stroke-width="4" 
> stroke="#000000" fill="none"/>
> it works.
>
> Any ideas ?
>
> Thank you.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/e113c92a-e877-4485-b23b-44458c08f645%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to