A Web Component example using X-Tag.
Looking for a boilerplate? Check x-tag-boilerplate.
Install the component using Bower:
$ bower install hello-world-xtag --save
Or download as ZIP.
-
Import polyfill:
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
-
Import custom element:
<link rel="import" href="bower_components/hello-world-xtag/hello-world.html">
-
Start using it!
<hello-world></hello-world>
Attribute | Options | Default | Description |
---|---|---|---|
who |
string | World |
Who do you want to say hello? |
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
-
$ npm install -g bower polyserve
-
Install local dependencies:
$ bower install
-
Start development server and open
http://localhost:8080/components/hello-world-xtag/
.$ polyserve
For detailed changelog, check Releases.
MIT License © WebComponents.org