This project explores the question: What is the smallest amount of code that must be added to polymer-micro to create a web component environment that can meet the needs of our open source component collection, Basic Web Components?
The minimalComponent.js file defines a Polymer behavior that can be used with polymer-micro. The behavior adds the following features:
- Creation of a shadow root
- instantiation
- Shimming of CSS styles under the Shadow DOM polyfill
- Polymer-style automatic node finding (not sure if we really need this)
The file test-element.html uses polymer-micro and the above behavior to define a very simple component. The page index.html shows that component in use. You can view that page in the live demo.