did you check console on possible errors? If there is no errors, other possible reason of not rendering is ChangeDetection strategy such as onPush, you need change it to onDefault or use markForCheck() method in a place when you need rendering
import { Component, ChangeDetectorRef } from '@angular/core';
@Component({
selector: 'app-example',
template: `
<p>Count: {{ count }}</p>
<button (click)="increment()">Increment</button>
`,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ExampleComponent {
count = 0;
constructor(private cdr: ChangeDetectorRef) {}
increment() {
this.count++;
// Manually trigger change detection
this.cdr.markForCheck();
}
}