fix(59): typo (#1272)

This commit is contained in:
Michal Grzegorczyk
2025-04-04 08:42:09 +02:00
committed by GitHub
parent 99a3647cb5
commit 805b53bf64

View File

@@ -20,12 +20,12 @@ interface Post {
<app-expandable-card> <app-expandable-card>
<div title>Load Post</div> <div title>Load Post</div>
<div> <div>
@if (postRessource.isLoading()) { @if (postResource.isLoading()) {
Loading... Loading...
} @else if (postRessource.status() === ResourceStatus.Error) { } @else if (postResource.status() === ResourceStatus.Error) {
Error... Error...
} @else { } @else {
@for (post of postRessource.value(); track post.id) { @for (post of postResource.value(); track post.id) {
<div>{{ post.title }}</div> <div>{{ post.title }}</div>
} }
} }
@@ -36,7 +36,7 @@ interface Post {
imports: [ExpandableCard], imports: [ExpandableCard],
}) })
export class Page2 { export class Page2 {
public postRessource = httpResource<Post[]>( public postResource = httpResource<Post[]>(
'https://jsonplaceholder.typicode.com/posts', 'https://jsonplaceholder.typicode.com/posts',
); );
protected readonly ResourceStatus = ResourceStatus; protected readonly ResourceStatus = ResourceStatus;