I need to prepare some dummy data on spartacus storefront. I am extending the BannerComponent and want to use this component inside several different other custom Components. But I don't understand how data is actually injected to the property public component: CmsComponentData
I already read about that part here https://sap.github.io/spartacus-docs/customizing-cms-components/
But this section is not really explaining how the data is actually injected to "data$". I was looking for some classic "new CmsComponentData()" approach where I can just reference a local image-path. Probably that's not the way to go...
In the spartacus default Source Base, I don't see any occurrence of "cx-banner" being used in any HTML File. But this is exactly what (I think) I need to do in my custom Components (containers that hold both paragraphs AND the banner). If I reference my new < custom-cx-banner > inside an HTML template, it won't bare any data. How do I inject it?
Thanks for your time.