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

simple-example.component.html

13 lines384 Bytes

1@if (query.isPending()) {
2 <div>Loading...</div>
3}
4@if (query.isError()) {
5 <div>An error has occurred: {{ query.error().message }}</div>
6}
7@if (query.data(); as data) {
8 <h1>{{ data.name }}</h1>
9 <p>{{ data.description }}</p>
10 <strong>πŸ‘€ {{ data.subscribers_count }}</strong>
11 <strong>✨ {{ data.stargazers_count }}</strong>
12 <strong>🍴 {{ data.forks_count }}</strong>