polymerEvent Handling


Remarks

  • Here's a plunker for all the examples
  • Attribute's name are case-insensitive and will always be converted to lowercase, e.g if you have an attribute on-myListener listener will be set on mylistener event.
  • Similar to listen you can also use unlisten method remove any listener.
  • Poperty change fires an event by the name of property-changed e.g if property is myProperty event will be my-propert-changed(camel casing to '-'). You can listen to them either by using on-event attribute of listener Object.
  • New value is always stored in e.detail.value for property change events.