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