polymer-boilerplate

Fork this repo if you want to start your own Web Component using Polymer

  • Owner: webcomponents/polymer-boilerplate
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

<my-repo>

A bare minimum custom element starter-kit using Polymer.

Like Yeoman? Use the generator-element instead.

Looking for a working example? Check hello-world-polymer.

Demo

Check it live!

Install

Install the component using Bower:

$ bower install my-repo --save

Or download as ZIP.

Usage

  1. Import polyfill:

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
    
  2. Import custom element:

    <link rel="import" href="bower_components/my-repo/my-element.html">
    
  3. Start using it!

    <my-element></my-element>
    

Options

Attribute, Options, Default, Description
---, ---, ---, ---
foo, string, bar, Lorem ipsum dolor.

Methods

Method, Parameters, Returns, Description
---, ---, ---, ---
unicorn(), None., Nothing., Magic stuff appears.

Events

Event, Description
---, ---
onsomething, Triggers when something happens.

Development

In order to run it locally you'll need to fetch some dependencies and a basic server setup.

  1. Install bower & polyserve:

    $ npm install -g bower polyserve
    
  2. Install local dependencies:

    $ bower install
    
  3. Start development server and open http://localhost:8080/components/my-repo/.

    $ polyserve
    

History

For detailed changelog, check Releases.

License

MIT License

Main metrics

Overview
Name With Ownerwebcomponents/polymer-boilerplate
Primary LanguageHTML
Program languageHTML (Language Count: 1)
Platform
License:
所有者活动
Created At2013-08-19 13:56:42
Pushed At2015-07-07 21:59:16
Last Commit At2015-07-07 14:59:15
Release Count7
Last Release Namev1.1.0 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count369
Watchers Count32
Fork Count214
Commits Count81
Has Issues Enabled
Issues Count14
Issue Open Count0
Pull Requests Count7
Pull Requests Open Count1
Pull Requests Close Count7
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private