• Elliott Sprehn's avatar
    Make SkyElement more classy. · 5f6c32c2
    Elliott Sprehn authored
    The syntax for implementing a SkyElement is now:
    
    <sky-element name="element-name">
    <template>
      <!-- template here -->
    </template>
    <script>
    module.exports = class extends SkyElement {
      attached() {
         // ...
      }
      // .. methods here ..
    }.register();
    </script>
    </sky-element>
    
    The register() static method on SkyElement subclasses calls
    document.registerElement() and returns the generated constructor.
    It uses the parent <sky-element>'s name attribute to set the name
    of the element.
    
    R=rafaelw@chromium.org
    
    Review URL: https://codereview.chromium.org/788943003
    5f6c32c2
Name
Last commit
Last update
..
animation Loading commit data...
calculator Loading commit data...
city-list Loading commit data...
flights Loading commit data...
flights-app Loading commit data...
htmlish Loading commit data...
style Loading commit data...
README.md Loading commit data...
file-browser.sky Loading commit data...
home.sky Loading commit data...
radio.sky Loading commit data...
spinning-square.sky Loading commit data...