これは、テストブログその1
太字
斜め文字
下線
インラインコード
@Component({
selector: 'app-post-page',
templateUrl: './post-page.component.html',
styleUrl: './post-page.component.css',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PostPageComponent {
private readonly blogService = inject(BlogService);
id = input.required<string>();
postResource = rxResource({
request: () => this.id(),
loader: ({request: id}) => this.blogService.fetchBlog(id),
});
}