mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
15 lines
307 B
TypeScript
15 lines
307 B
TypeScript
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
|
|
@Component({
|
|
standalone: true,
|
|
template: `
|
|
<section>
|
|
<h1>{{ title() }}</h1>
|
|
</section>
|
|
`,
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
})
|
|
export class PageComponent {
|
|
title = input.required<string>();
|
|
}
|