0👍
References:
In your app.js (entry file):
Global registration:
Vue.component('cropper-admin', require('./js/component.vue'));
Local registration:
import 'component' from './js/component.vue'
new Vue({
el: '#appCropper',
components: {
'cropper-admin': component
}
});
component.vue:
<template>
<div>{{ text }}</div>
</template>
<script>
export default {
data() {
return { text: 'test }
}
}
</script>
Hope this helps to get you started
- [Vuejs]-Vuex and dynamic states. Is possible?
- [Vuejs]-How to v-for loop a nested navigation in Vue.js?
Source:stackexchange.com