[Vuejs]-Nesting component in a component

4👍

Try following:

<script>
  import itemCard from './components/Item-card.vue';
  export default {
    components:{
      'item-card': itemCard
    },
    data(){
         .........
         .........

Also check the file name if it is typed correctly.

Leave a comment