0.1.2 • Published 5 years ago
@tarvainen/counter-component v0.1.2
COUNTER-COMPONENT
Usage
- Install package
npm i @tarvainen/counter-component
- Import and register
custom element
import CounterComponent from '@tarvainen/counter-component'
customElements.define('app-counter', CounterComponent)
- Use it
<html>
<body>
// ...
<app-counter></app-counter>
</body>
</html>
Development
Start development server by issuing following command.
npm run serve
Running tests
npm test
License
MIT