[Vuejs]-How can I make different HTML and component files in Vue.js?

0👍

If your goal isn’t to avoid precompilation, you can still use single-file components and split the js and css into different files. They include an example of this structure in the docs.

<template>
  <div>This will be pre-compiled</div>
</template>
<script src="./my-component.js"></script>
<style src="./my-component.css"></style>

Leave a comment