Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Dive into Polymer - GDG SouthWest DevFest 2016

Lynda Chiwetelu
November 28, 2016
130

Dive into Polymer - GDG SouthWest DevFest 2016

An Introduction to The Polymer Project By Google.

Lynda Chiwetelu

November 28, 2016
Tweet

Transcript

  1. Features being added to the HTML and DOM specificaTons, that

    allow for the creaTon of reusable components in web documents and applicaTons. What Web Components Are:
  2. 1. Custom Elements <dom-module id="paper-spinner"> <template strip-whitespace> <style include="paper-spinner-styles"></ style>

    … </template> <script> Polymer({ is: 'paper-spinner', behaviors: [ Polymer.PaperSpinnerBehavior ] }); </script> </dom-module> PAPER SPINNER ELEMENT Write your own elements, HTML, STYLE, BEHAVIOR
  3. Shadow DOM is the ability of the browser to include

    a subtree of DOM elements into the rendering of a document without affecting the main document DOM tree.
  4. 3. HTML Imports Import Components in HTML to use your

    elements <link rel="import" href=“component.html”>
  5. THE POLYMER PROJECT Polymer Library is one that helps you

    take advantage of all the features of Web Components Polymer App ToolBox helps you builds Progressive Web Apps with minimal overhead. It leverages powerful features like service workers and Web components
  6. WITH POLYMER YOU CAN USE: Use already built and tested

    Elements Create Your own Elements Build Apps!
  7. Features of POLYMER Library Lots of Already built collections of

    elements you can use in your application https://elements.polymer-project.org
  8. Advantages of POLYMER Elegant Code Less Expensive to Maintain Clean

    Code Reusable elements – of course Great documentation Speedy Development – Of course Mobile Power! Custom CSS properties for elements
  9. IT’S SUPER EASY TO USE AN ELEMENT To use a

    polymer element in your app… Visit the Polymer Catalog (https://elements.polymer-project.org/browse) Star the elements you want Download the bower.json file Add it to your app directory Run bower install Ready to be used! Install Node, npm and bower