Using Polymer with Meteor
In the root of your project, make sure Bower is installed (
npm install -g bower) and run
bower init. This will create a
bower.json file in your project's directory.
Create a new file called
.bowerrc to your root directory. It should contain the following:
This lets Bower know that it should save components in the
bower_components folder in your app's public directory.
Now add the Polymer components you wish to use with your app.
In your app's root directory bower-install each component you want to use.
Add Vulcanize to your project
Create a new file called config.vulcanize in the root of your project. It should contain the following:
"imports" should list each component you will use in your app.
You can now use components you have imported in your Blaze templates just as you would any other element: