Skip to content

Commit 29a7076

Browse files
committed
fix example type error
1 parent 265ae8d commit 29a7076

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/angular/infinite-query-with-max-pages/src/app/components/example.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ <h3>4 projects per page</h3>
44
<h3>3 pages max</h3>
55
@if (query.isPending()) {
66
<p>Loading...</p>
7-
} @else if (query.isError()) {
7+
}
8+
@if (query.isError()) {
89
<span>Error: {{ query.error().message }}</span>
9-
} @else {
10+
}
11+
@if (query.isSuccess()) {
1012
<div>
1113
<button
1214
(click)="query.fetchPreviousPage()"

0 commit comments

Comments
 (0)