Overriding a polymer element at runtime
1 answer
To "manipulate DOM, properties and behavior", as Sergey mentions, you can use the built-in callback ready
as described here .
<script>
(function() {
Polymer({
is: 'example-element',
properties: {...},
ready: function() {
// access a local DOM element by ID using this.$
this.$.header.textContent = 'Hello!';
}
});
})();
</script>
+4
source to share