Closed OfficialCRUGG closed 2 years ago
Import it inside the CustomNavbar.vue like this:
<template>
<custombutton></custombutton>
</template>
<script>
module.exports = {
components:{
'custombutton': httpVueLoader('js/CustomButton.vue'),
},
data: function(){
return {
}
},
}
</script>
<style>
</style>
Alternatively you can register the component globally using the httpVueLoader.register() method
I think the title is pretty self-explanatory: How would I use CustomButton inside CustomNavbar for example?
I import CustomNavbar in the
index.html
File using:which by itself works. But now I want to use CustomButton inside the CustomNavbar File. How would I do this?