0π
β
- Your
index.vue
βs script tag should include the content of yourcomponents/index.js
file. - Your index component should import the
Ch
component and use it in itβs Vue definition - Your index template should have a single DOM element wrapping all else
<template>
<div>
<ch></ch>
</div>
</template>
<script>
import Ch from '../components/ch';
export default {
// your index component vue here
components: { Ch }
};
</script>
0π
export default {
components: { Index, Ch }
}
Must be called in order to grab the component(s).
Source:stackexchange.com