[Vuejs]-How to set same props to many components?

0๐Ÿ‘

โœ…

If all components have the same props you can try to render them using v-for and dynamic components like this:

<component v-for="comp in comps" :is="comp" :key="comp" :isDetail="detail"/>
data: {
  return {
    comps: ['my-a', 'my-b', 'my-c']
  }
}

Leave a comment