Polymer 1.0+ itemForElement example

Polymer 1.0+ itemForElement example

In Polymer sometimes you need to access the data item bound to a DOM element inside a dom-repeat template. A common use case is when the user interacts with the element (like click/hover) and you need to display additional properties of the element.

The way to do that is using the dom-repeat template method itemForElement.

JS Bin on jsbin.com

Notes:


If you found something useful and want to donate (click to see Bitcoin address)

Published

18 October 2015

Tags