Поработав с Aurelia некоторое время, я пытаюсь создать собственный компонент / шаблон. Однако с кодом ниже минимального я все еще не могу показать сообщение, которое находится в testcomponent.html
. Я вижу <testcomponent></testcomponent>
в HTML DOM, но не сообщение test
. Что я делаю не так?
integrationcomponent.html
<template>
<require from="./forms/testcomponent"></require>
<h1>first page</h1>
<testcomponent></testcomponent>
</template>
testcomponent.js
export class TestComponent {
constructor() {
}
}
testcomponent.html
<template>
<p>test</p>
</template>