| import { ChangeDetectionStrategy, Component, signal } from '@angular/core' | |
| import { PostComponent } from './components/post.component' | |
| import { PostsComponent } from './components/posts.component' | |
| ({ | |
| changeDetection: ChangeDetectionStrategy.OnPush, | |
| selector: 'basic-example', | |
| templateUrl: './app.component.html', | |
| imports: [PostComponent, PostsComponent], | |
| }) | |
| export class BasicExampleComponent { | |
| postId = signal(-1) | |
| } | |