How to show results only when user types in the search box?
See original GitHub issuebelow is my html and typescript code
<ais-instantsearch [config]="comment">
<ais-search-box></ais-search-box>
<ais-hits>
<ng-template let-hits="hits">
<div class="row">
<div *ngFor="let hit of hits" class="col-4">
<div class="comments">
<ais-highlight attribute="name" [hit]="hit"> </ais-highlight>
<h6>{{hit.email}} </h6>
<p> {{hit.body}}</p>
</div>
</div>
</div>
</ng-template>
</ais-hits>
</ais-instantsearch>
comment={
apiKey: 'apikey',
appId: 'apiid',
indexName: 'comment',
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Make only 5 results to be visible in a search bar at a time
I want to make it to show ony 5 result and there should be a slidebar at right side from which on sliding...
Read more >showing a list of results showed while user is writing ...
I'm trying to create a search box where the user write something, and while he do that a listbox with all the matching...
Read more ><input type="search"> - HTML: HyperText Markup Language
The results attribute—supported only by Safari—is a numeric value that lets you override the maximum number of entries to be displayed in the...
Read more >How to Filter Search Results While Typing With React
You can use React to build a search bar that filters and displays data as the user types. With React hooks and the...
Read more >Best Practices for Search | UX Booth
Don't erase users' query after they hit the Search button · Select a proper layout for your data · Display the number of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The
ais-hits
widget provides theresults
value containing the currentquery
. You can conditionally show the results based onresults.query
.Hi could u update the code to latest Angular 14v and Anguar-Instantsearch to v4, because i am using the same code throws error. the no result content always shows.