In Angular InstantSearch, how do I specify that I want 25 results per page?

#1

In Angular InstantSearch, how do I specify that I want 25 results per page? I want this to be the default value and not a dropdown that the users interact with.

Thanks
Eric

p.s. is there an example angular app that has code examples? I am having a very hard time navigating thru your pages and finding what is relevant.

#2

Hi @ecoffman,

Thanks for contacting Algolia.

As described, you can use the configure widget to specify the hitsPerPage parameter instead of using the dropdown widget:

<ais-configure
  [searchParameters]="{ hitsPerPage: 25 }"
></ais-configure>

The open source Angular IS repo has examples.

We hope this helps!

1 Like