custom data attribute on <iron-ajax> disappeard after render in template

114 views
Skip to first unread message

NanoWANG

unread,
May 29, 2015, 2:39:46 AM5/29/15
to polym...@googlegroups.com
      <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

NanoWANG

unread,
May 29, 2015, 5:20:32 AM5/29/15
to polym...@googlegroups.com
I guess I just found out the answer, should use `$=` for attribute binding.
Reply all
Reply to author
Forward
0 new messages