A
A
Alex Terechenko2020-07-05 19:41:11
Vue.js
Alex Terechenko, 2020-07-05 19:41:11

How to call in Vue.js a component inside a component?

How to call in Vue.js a component inside a component?
Tried about different

import Filter from './Filter';

    export default {
        comments: {'filter' : Filter}
    }


then call him<filter></filter>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2020-07-05
@alextereeh8998

<template>
  <div>
    <Filter/>
  </div>
</template>


<script>
import Filter from './Filter'

export default {
  components: {
    Filter,
  },
}
</script>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question