/hello-feenan

开发自己的web组件 with Polymer

Primary LanguageJavaScript

<hello-feenan>

利用polymer平台构建的自定义组件 Polymer.

不会的,可以看看这个官方的hello world例子 hello-world-polymer.

Demo

Check it live!

Install

Install the component using Bower:

$ bower install hello-feenan --save

Or download as ZIP.

Usage

  1. Import Web Components' polyfill:

    <script src="bower_components/platform/platform.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/hello-feenan/dist/hello-feenan.html">
  3. Start using it!

    <hello-feenan></hello-feenan>