[Vuejs]-Vue – How to import components dynamically

0👍

You can include an i when you have no idea how many will be included

<component v-for="i in this.components" v-bind:is="componentName" />
  </div>

then for the js

export default {
  name: 'app',
  data: function() {
    return {
    this: {id: 1, name: ''}
}
}

Leave a comment