Actually I created a new ProductListComponent and a new ProductListComponentService, they have the same code as the original, I only changed the value protected defaultPageSize at ProductListComponentService but it doesn't have effect.
Any Ideas?
My Product List Component
export class CustomProductListComponent {
model$: Observable<ProductSearchPage> = this.productListComponentService
.model$;
constructor(private pageLayoutService: PageLayoutService, private productListComponentService: ProductListComponentService, private cd: ChangeDetectorRef,
private scrollConfig?: ViewConfig) {
}
}
Original Source Code: https://sap.github.io/cloud-commerce-spartacus-storefront/components/ProductListComponent.html#source
My Product List Component Service
@Injectable({ providedIn: 'root' })
export class ProductListComponentService {
protected defaultPageSize = 12;
Original Source Code: https://sap.github.io/cloud-commerce-spartacus-storefront/injectables/ProductListComponentService.html#source