tl;dr: Very simple component displays only once. WHY?
I have this component:
import { Component } from "@angular/core";
@Component({
selector: 'testComponent',
template: '<div><h1>{{pageTitle}}</h1></div>'
})
export class AppComponent {
pageTitle: string = "Title";
}
And I use it in the following page (Index.html):
<html>
<body>
<testComponent></testComponent>
</body>
</html>
The page displays "Title" (obviously). But if I change the html to:
<html>
<body>
<testComponent></testComponent>
<testComponent></testComponent>
</body>
</html>
It still displays "Title", just once. Shouldn't it display it twice?