1๐
โ
As @ashutosh has mentioned, you need to import that component to register it:
<template>
<div>
<phoneSearch />
</div>
</template>
<script>
import phoneSearch from './your-directory/your-component.vue';
export default {
name: "add-passenger",
components: { phoneSearch },
}
</script>
<style scoped>
</style>
1๐
You need to import the child component locally inside the parent component to display it
<template>
<div>
<your-component></your-component>
</div>
</template>
<script>
import yourComponent from './components/child-component.vue';
export default {
components: { yourComponent },
}
</script>
Source:stackexchange.com