Differential / polymer-demo

Polymer & Meteor
164 stars 44 forks source link

Differential Polymer Demo

AS SEEN ON THE YOUTUBES

Installation

  1. Clone the repository git clone https://github.com/Differential/polymer-demo
  2. From the root directory of the meteor app, run bower install
    • This will install Polymer, web components, & vulcanize
    • Also, includes some custom elements we made so you can see how that works
  3. Start the Meteor server meteor
  4. WEB COMPONENTS!

Important concepts:

Including webcomponents.js

In the client/templates/layout/head.html file, there is a line that looks like this:

<script src="https://github.com/Differential/polymer-demo/raw/master/components/webcomponentsjs/webcomponents.js"></script>

This is very important because it includes the web components polyfill.

imports.html

Deploying to production