cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable infinite scrolling in spartacus

0 Kudos

Hi guys,

I'm running a local SAP Commerce 2105 instance and also Spartacus. I'm looking for the infinite scroll functionality and found this page within the Spartacus documentation: https://sap.github.io/spartacus-docs/infinite-scroll/.

My app.module.ts looks like this:

Can you tell me where to find it and how to activate infinite scroll please?

Thanks and regards

Dennis

Accepted Solutions (1)

Accepted Solutions (1)

samuelyang
Product and Topic Expert
Product and Topic Expert

Hi Dennis,

If you are using Spartacus version 4, please see below codes to enable infiniteScroll.

...

... 
import { ViewConfig } from "@spartacus/storefront";
...

provideConfig(<ViewConfig>{
    view: {
      infiniteScroll: {
        active: true,
        productLimit: 500,
        showMoreButton: false,
      },
    },
  }),

You can add it in your App module or the SpartacusConfigurationModule.

0 Kudos

Thanks a lot!

Answers (0)