I have set the "name" property in Oneway.vue but I can't use the component and I got this error: did you register the component correctly? For recursive components, make sure to provide the "name" option
import Oneway from '../Flight/Oneway';
export default {
name:'FlightResult',
components:{
Oneway
}
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<template>
<div>
<one-way></one-way>
</div>
</template>
Onewaythen use it as<oneway>, to use it as<one-way>his name should beOneWay