1

I want to leverage the <compose> custom element in my application using the view property exclusively. Here is my markup/code:

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() { }
}

/views/start.html

<template>
    <section>
        <button>New game</button>
    </section>
</template>

However, I get the following error:

Potentially unhandled rejection [1] ReferenceError: childContainer is not defined

4

1 回答 1

2

这是一个已解决的错误。看这里:

https://github.com/aurelia/template/issues/6

于 2015-01-29T15:01:47.727 回答