user1369975
user1369975

Reputation: 420

What is the proper way to render components on SAP Spartacus?

My question is about SAP Spartacus.

I wanted to know which way should be followed while making components:

1)Make components in Hybris, and use it on Spartacus storefront via a REST call.

2)Make components in Angular and use it on app component.Also wanted to know what is the correct way to use it on Spartacus storefront

Upvotes: 1

Views: 2413

Answers (1)

dunqan
dunqan

Reputation: 974

I would generally go with 2nd option, i.e. create components in Angular and:

1) map them to existing component defined in hybris

2) Use CMSFlexComponent with flexType in hybris CMS to map it to your Angular component

You can read how to configure CMS component mapping in docs: https://sap.github.io/cloud-commerce-spartacus-storefront-docs/customizing-cms-components/

Upvotes: 2

Related Questions