Polymer 2.0: Under the Hood
summary
Polymer 2.0 claims to shrink the library and “do less” by leaning on native v1 Web Components: Custom Elements, Shadow DOM and HTML imports. It demonstrates migrating a vanilla clock widget into a Polymer element that extends Polymer.Element, stores configuration in a properties block, and stamps a template from a DOM module into shadow DOM. Data binding is implemented via generated property setters, array/object updates use this.set or reassigning the object, and events use dispatchEvent instead of this.fire — result: much less boilerplate and the demo works.
AI-written summary · about
chapters (5)
- 0:00Start
- 7:14Lifecycle Callbacks
- 9:39Use the callback to synchronize your attributes and properties
- 14:51Dispatch events for any state change
- 21:35Configuration








