@kepi0809/npm-test
v2.0.0
Published
A Vue.js component that displays a clock
Downloads
13
Readme
@kepi0809/npm-test
A Vue component that shows a clock.
This isn't particularly useful, it's used as a demo for how to publish Vue components to NPM!
Installation
npm i --save-dev @kepi0809/npm-test
Browser
Include the script file, then install the component with Vue.use(VueClock);
e.g.:
<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/@kepi0809/npm-test/dist/vue-clock.min.js"></script>
<script type="text/javascript">
Vue.use(VueClock);
</script>
Module
import VueClock from '@kepi0809/npm-test';
Usage
Once installed, it can be used in a template as simply as:
<vue-clock></vue-clock>