Module: products

Module aggregator for all shop products and product-related classes. Contains the main array of all available products.

Source:
Source:

Members

(inner, constant) products :Array.<ShopItem>

Array of all available products in the shop. Contains instances of Flower, Bouquet, DecorItem, etc.

Type:
Source:

Methods

(inner) applyFilters()

Applies filters (color, season, price, search) to the category-specific bouquet list.

Source:

(async, inner) fetchAndInitialize()

Fetches products, determines the category from URL, and initializes the list.

Source:
Throws:

If category is missing or fetching from API fails.

Type
Error

Module for the Product Catalog page, handling category-specific display and filtering.

Source:
Source:

Members

(inner, constant) products :Array.<ShopItem>

Array of all available products in the shop. Contains instances of Flower, Bouquet, DecorItem, etc.

Type:
Source:

Methods

(inner) applyFilters()

Applies filters (color, season, price, search) to the category-specific bouquet list.

Source:

(async, inner) fetchAndInitialize()

Fetches products, determines the category from URL, and initializes the list.

Source:
Throws:

If category is missing or fetching from API fails.

Type
Error