Create multiple data-sly-resource with dynamic name
Hi,
I'm going through a list and I need to dynamically create multiple data-sly-resources, so I understand that a different name must be assigned to each created component. I have the following code but I can not get it to work correctly, I only create 1 component and this is because it is probably assigning the same name to all the components. This is my code, any suggestions?
<sly data-sly-use.lstModel="com.rimac.core.models.TextListModel"></sly>
<div data-sly-list.lst="${lstModel.lstTextModel}">
<div data-sly-resource="${ '${lst.titleName}' @ resourceType='/apps/example/components/content/button'}"></div>
</div>
Thanks.