npm install --save @jledentu/vue-finder
vue-finder can be used as a module in both CommonJS and ES module environments. When in non-modular environment, vue-finder will register all the components to vue by itself.
import { Finder } from '@jledentu/vue-finder';
export default {
...
components: {
Finder
},
...
};
//
// You can register a component manually
//
var Vue = require('vue');
var VueFinder = require('@jledentu/vue-finder');
var YourComponent = Vue.extend({
...
components: {
'vue-finder': VueFinder.Finder
},
...
});
<script src="path/to/vue/vue.min.js"></script>
<script src="path/to/@jledentu/vue-finder/dist/vue-finder.min.js"></script>
<!-- Components are registered globally -->
<vue-finder></vue-finder>
See the GitHub release history.