Answers for "import comonent vue"

8

vue import component

// With Vue 3.2 
<script setup>
import Btn from './components/Btn'
</script>

<template>
  <Btn />
</template>
Posted by: Guest on November-02-2020
0

registeing components in vue

import Sidebar from '../../components/sidebar/main.vue';
export default {
    props: [""],
    components: {
        'sidebar': Sidebar
    },
...
Posted by: Guest on January-19-2021

Browse Popular Code Answers by Language