I guess I just found out the answer, should use `$=` for attribute binding.

On Friday, May 29, 2015 at 2:39:46 PM UTC+8, NanoWANG wrote:
>
>       <template is='dom-repeat' items='{{ resourcesList }}'>
>         <iron-ajax auto data-resource-name='{{ item.name }}' 
> handle-as='json' on-response='resourceLoaderResponse' 
> url='{{item.fullPath}}'></iron-ajax>
>       </template>
>
>
> It looks fine right?
>
> But in the actually shadow-root, it becomes:
>
> <iron-ajax auto= handle-as="json"></iron-ajax>
> <iron-ajax auto= handle-as="json"></iron-ajax>
> <iron-ajax auto= handle-as="json"></iron-ajax>
> ...
>
> Hence, I can't pass custom value between the data attribute.
>
> I'm wondering if this is a bug.
>
> Thx
>
> NanoWANG
>

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/891cd1d2-9805-44ba-9e77-4167f9149ec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to