0.0.2 • Published 6 years ago
vue-app-button v0.0.2
vue-app-button
A Vue component that shows a button.
This isn't particularly useful, it's used as a demo for how to publish Vue components to NPM!
Installation
npm i --save-dev vue-app-button
Browser
Include the script file, then install the component with Vue.use(VueAppButton);
e.g.:
<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-app-button/dist/vue-app-button.min.js"></script>
<script type="text/javascript">
Vue.use(VueAppButton);
</script>
Module
import VueAppButton from 'vue-app-button';
Usage
Once installed, it can be used in a template as simply as:
<vue-app-button></vue-app-button>