我希望独占地使用<compose>属性在我的应用程序中利用view自定义元素。下面是我的标记/代码:
app.html
<template>
<main>
<compose view="views/start.html"></compose>
</main>
</template>app.js
import { Metadata } from 'aurelia-framework';
export class App {
static metadata() { return Metadata.singleton(); }
constructor() { }
}/view/start.html
<template>
<section>
<button>New game</button>
</section>
</template>但是,我得到以下错误:
可能未处理的拒绝1 ReferenceError: childContainer未定义
发布于 2015-01-29 15:01:47
这是一个已经解决的错误。见这里:
https://stackoverflow.com/questions/28206127
复制相似问题