1
是否可以使用v-for动态加载vue组件?v-for动态组件vuejs 1.0
data: {
"components" : [
{"type": "my-first"},
{"type": "my-second"}
]
}
<component v-for="com in components" is="com.type"></component>
我已经看到用v重复一个例子,但这在Vue公司1.0弃用。 link
是有可能。请参阅https://github.com/vuejs/vue/issues/2424 –