Is there a way to pass an argument to a Polymer function from an element attribute inside its ?
Shining more light on a subtle difference mentioned in the comments above.
Notice $= must be used if reading a data binding.
Tap
...
_handleTap: function(e) {
var foo = e.target.dataset.foo;
var bar = e.target.dataset.bar;
}
Inside dom-repeat, the item (or whichever name you give it) is available at e.model.item.
Tap
...
_handleTap: function(e) {
var item = e.model.someItem;
}