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

example.component.html

13 lines326 Bytes

1<h1>Search for a programming language</h1>
2​
3<form [formGroup]="form">
4 <input type="text" formControlName="term" />
5​
6 @if (query.isSuccess() && query.data().suggestions.length) {
7 <ul>
8 @for (suggestion of query.data().suggestions; track suggestion) {
9 <li>{{ suggestion }}</li>
10 }
11 </ul>
12 }
13</form>