<polymer-element name="x-foo">
<template>
<div on-tap="{{tapHandler}}">tap me!</div>
</template>
<script>
Polymer('x-foo', {
tapHandler: function() {
console.log('tapped!')
}
});
</script>
</polymer-element>
<x-foo></x-foo>
If you inspect the DOM you will see the function strings appears in the markup:
<div on-tap="function () {
console.log('tapped!')
}">tap me!</div>
If you inspect the DOM you will see the function strings appears in the markup: