@mkplace/mkplace-vue
v2.1.0
Published
   ;CommonJS
//
// You can register a component manually
//
var Vue = require('vue');
var ModuleLibrary = require('mkplace-vue');
var YourComponent = Vue.extend({
...
components: {
'hello-world': ModuleLibrary.HelloWorld
},
...
});
//
// or register the whole module with vue
//
var Vue = require('vue');
var ModuleLibrary = require('mkplace-vue');
// Install this library
Vue.use(ModuleLibrary);Browser
<script src="path/to/vue/vue.min.js"></script>
<script src="path/to/mkplace-vue/dist/mkplace-vue.min.js"></script>
<!-- Components are registered globally -->After that, you can use it in your templates:
<hello-world></hello-world>Changelog
See the GitHub release history.
Contributing
See CONTRIBUTING.md.
