Reputation: 63
I'm building a menu with a dom-repeat template like this:
<template is="dom-repeat" items="{{appletsMenu}}">
<a data-route="{{item.dataRoute}}" href="{{item.href}}">
<iron-icon icon="{{item.icon}}" src="{{item.iconSrc}}" ></iron-icon>
<span>{{item.name}}</span>
</a>
</template>
The data-route
attribute is not filled though in the generated DOM:
<a href="...">...</a>
<a href="...">...</a>
It seems that the template only renders "normal" attributes like href
. Am I'm missing something? Thanks.
Upvotes: 1
Views: 732