react-code-dataset
/
react-query
/examples
/angular
/query-options-from-a-service
/src
/app
/components
/post.component.html
| <div> | |
| <div> | |
| <a routerLink="/" href="#">Back</a> | |
| </div> | |
| @if (postQuery.isPending()) { | |
| Loading... | |
| } @else if (postQuery.isError()) { | |
| Error: {{ postQuery.error().message }} | |
| } | |
| @if (postQuery.isSuccess()) { | |
| @let post = postQuery.data(); | |
| <h1>{{ post.title }}</h1> | |
| <div> | |
| <p>{{ post.body }}</p> | |
| </div> | |
| @if (postQuery.isFetching()) { | |
| Background Updating... | |
| } | |
| } | |
| </div> | |