Fork this repo if you want to start your own Web Component using X-Tag
HTML
Latest commit 78090c1 May 29, 2015 @zenorocha zenorocha Updates xtag
Permalink
Failed to load latest commit information.
.editorconfig Initial boilerplate based on element-boilerplate Mar 25, 2014
.gitignore
README.md Moves from Grunt tooling to Polyserve May 15, 2015
bower.json Updates xtag May 28, 2015
index.html
my-element.html Moves from Grunt tooling to Polyserve May 15, 2015

README.md

<my-repo>

A bare minimum custom element starter-kit using X-Tag.

Like Yeoman? Use the generator-element instead.

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

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.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