1.0.5 • Published 6 years ago

reusable-vue-component v1.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

reusable-vue-component

This is a reusable UI component based in Vue.js

Installation

npm i --save-dev reusable-vue-component

Browser

Include the script file, then install the component with Vue.use(ReusableComponent); e.g.:

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/reusable-vue-component/dist/reusable-vue-component.min.js"></script>
<script type="text/javascript">
  Vue.use(ReusableComponent);
</script>

Module

import ReusableComponent from 'reusable-vue-component';

Usage

Once installed, it can be used in a template as simply as:

<reusable-vue-component msg='your string' onUpdate="function to be triggered"></reusable-vue-component>
1.0.5

6 years ago

1.0.4

6 years ago