polymer-boilerplate

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

  • 所有者: webcomponents/polymer-boilerplate
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

<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

主要指標

概覽
名稱與所有者webcomponents/polymer-boilerplate
主編程語言HTML
編程語言HTML (語言數: 1)
平台
許可證
所有者活动
創建於2013-08-19 13:56:42
推送於2015-07-07 21:59:16
最后一次提交2015-07-07 14:59:15
發布數7
最新版本名稱v1.1.0 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數369
關注者數32
派生數214
提交數81
已啟用問題?
問題數14
打開的問題數0
拉請求數7
打開的拉請求數1
關閉的拉請求數7
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?