I use data-sly-resource like this.
The goal is to create a component where you can pick a begin date and an end date.
<div>
van:
<div>
<sly data-sly-resource="${'./date1' @ resourceType='fd/af/components/guidedateinput'}"/>
</div>
tot:
<div>
<sly data-sly-resource="${'./date2' @ resourceType='fd/af/components/guidedateinput'}"/>
</div>
</div>
The problem im having is that the class selectors aren't placed on the html tags for the date input component in preview mode.
And because of that the css isn't loaded.
This is edit mode.
This is preview mode.
Thanks