Search code examples
spartacus-storefront

How to connect Spartacus with a custom API


I have a custom API in the backend. There's no backend component for this. I need to call directly on the API. My question is I need to display the data inside a certain page slot. is this possible in spartacus? Please advise :)


Solution

  • I just need to create a CMSFlexComponent for a placeholder since cmsComponents can accept also a flex type:

    cmsComponents: {
        <item type | flex type>: {
            component: <Angular Component>,
        },
    }