Reputation: 12295
I want to leverage the <compose>
custom element in my application using the view
property exclusively. Here is my markup/code:
<template>
<main>
<compose view="views/start.html"></compose>
</main>
</template>
import { Metadata } from 'aurelia-framework';
export class App {
static metadata() { return Metadata.singleton(); }
constructor() { }
}
<template>
<section>
<button>New game</button>
</section>
</template>
However, I get the following error:
Potentially unhandled rejection [1] ReferenceError: childContainer is not defined
Upvotes: 1
Views: 515
Reputation: 12295
This was a bug that has been resolved. See here:
https://github.com/aurelia/templating/issues/6
Upvotes: 2