README
<trmb-hello-world>
A Web Component example using Polymer.
Demo
https://bitbucket.trimble.tools/projects/TWC/repos/trmb-hello-world/demo/index.html
Install
Install the component using Bower:
$ bower install trmb-hello-world --save
Or
$ yarn add trmb-hello-world
Or
$ npm install trmb-hello-world --save
Or download as ZIP.
Usage
Import polyfill:
<script src="node_modules/webcomponentsjs/webcomponents-loader.js"></script>
Import custom element:
<script type="module" src="node_modules/trmb-hello-world/trmb-hello-world.js"></script>
Start using it!
<trmb-hello-world></trmb-hello-world>
Options
Attribute | Options | Default | Description |
---|---|---|---|
name |
string | World |
Who do you want to say hello? |
Development
In order to run it locally you'll need to fetch some dependencies and a basic server setup.
create root folder
cd root folder
git clone ssh://git@bitbucket.trimble.tools/twc/trmb-hello-world.git
cd trmb-hello-world
Install polymer cli in the root folder:
$ npm install -g polymer-cli
Install local dependencies:
$ yarn install
Start development server and open
http://localhost:8081/trmb-hello-world/demo/
.$ polymer serve
History
For detailed changelog, check Releases.
License
MIT License © WebComponents.org