【发布时间】:2020-03-29 15:52:42
【问题描述】:
我正在尝试在我的全局 Vue() 初始化中定义一个组件,并已成功定义了该组件的模板,但似乎无法定义为模板执行工作的实际类。我正在使用带有打字稿的 Vue。
import ListClubsComponent from "./components/ts/list-club";
new Vue({
el: "#app",
components: {
"list-clubs": {
template: require("./components/clubs/list-clubs.html"),
model: ListClubsComponent // This should be the class for the template
}
}
});
【问题讨论】:
标签: javascript typescript vue.js vuejs2 vue-component