Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

app.component.html

16 lines594 Bytes

1<p>
2 As you visit the posts below, you will notice them in a loading state the
3 first time you load them. However, after you return to this list and click on
4 any posts you have already visited again, you will see them load instantly and
5 background refresh right before your eyes!
6 <strong>
7 (You may need to throttle your network speed to simulate longer loading
8 sequences)
9 </strong>
10</p>
11<angular-query-devtools initialIsOpen />
12@if (postId() > -1) {
13 <post [postId]="postId()" (setPostId)="postId.set($event)"></post>
14} @else {
15 <posts (setPostId)="postId.set($event)" />