Your first LitElement element
This repo goes with the Build your first LitElement element codelab.
Running the codelab
You'll need to install some command-line tools to manage dependencies and to run the demo.
Download and install Node(recommends v10.x) from https://nodejs.org/. Node includes the node package manager command,
Clone this repo:
Change directory to your local repo and install dependencies with
cd litelement-first-elements npm install
To preview your element, run
npm startfrom the repo directory:
localhost:8081/components/icon-toggle/demo/in your browser. (Note that the path uses
icon-toggle—the component name listed in this element's
package.jsonfile—rather than the actual directory name.)
npm start calls
If you're wondering what
polymer serve does, see Run tests interactively
in the Polymer docs.