trmb-hello-world

> A Web Component example using [Polymer](http://www.polymer-project.org/). >

Usage no npm install needed!

<script type="module">
  import trmbHelloWorld from 'https://cdn.skypack.dev/trmb-hello-world';
</script>

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

  1. Import polyfill:

    <script src="node_modules/webcomponentsjs/webcomponents-loader.js"></script>
    
  2. Import custom element:

    <script type="module" src="node_modules/trmb-hello-world/trmb-hello-world.js"></script>
    
  3. 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.

  1. create root folder

  2. cd root folder

  3. git clone ssh://git@bitbucket.trimble.tools/twc/trmb-hello-world.git

  4. cd trmb-hello-world

  5. Install polymer cli in the root folder:

    $ npm install -g polymer-cli
    
  6. Install local dependencies:

    $ yarn install 
    
  7. 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