react-code-dataset / react-query /examples /angular /router /src /app /components /post.component.html
Download react-query/examples/angular/router/src/app/components/post.component.html from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/angular/router/src/app/components/post.component.html
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/angular/router/src/app/components/post.component.html
-
curl -L -o post.component.html https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/angular/router/src/app/components/post.component.html
421 Bytes
| <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> | |