react-code-dataset / react-query /examples /angular /basic-persister /src /app /components /post.component.html
Download react-query/examples/angular/basic-persister/src/app/components/post.component.html from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 407 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/angular/basic-persister/src/app/components/post.component.html
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/angular/basic-persister/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/basic-persister/src/app/components/post.component.html
407 Bytes
| <div> | |
| <div> | |
| <a (click)="setPostId.emit(-1)" href="#"> Back </a> | |
| </div> | |
| @if (postQuery.isPending()) { | |
| Loading... | |
| } @else if (postQuery.isError()) { | |
| Error: {{ postQuery.error().message }} | |
| } | |
| @if (postQuery.data(); as post) { | |
| <h1>{{ post.title }}</h1> | |
| <div> | |
| <p>{{ post.body }}</p> | |
| </div> | |
| @if (postQuery.isFetching()) { | |
| Background Updating... | |
| } | |
| } | |
| </div> | |