0👍
Could you try something like this ?
Create a single file that will contain your html / css and js.
tileHeader.vue :
<template>
<!-- Your view.html -->
</template>
<script>
export default {
name: 'tileHeader',
}
</script>
<style scoped>
</style>
Since the file has a export default, you’ll be able to import it in another file
Add to main.js :
import tileHeader from "./components/tileHeader.vue";
- [Vuejs]-Text input not populating after selection in vue
- [Vuejs]-Dynamic routing of a dynamics components with Vue
Source:stackexchange.com