How add css and html in vue js Like an angular css ,html and typescript in separate file

How i add css and html separately in vue js

i am beginner in vue and learn vue js but few question in my mind how can i add separately css and html file like an angular thanks in advance.


Solution 1:

You could make a single file component like :

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