mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43:03 -05:00
fix(59): typo (#1272)
This commit is contained in:
committed by
GitHub
parent
99a3647cb5
commit
805b53bf64
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user