How I can include xf directly (not through parsys) in aem component through sightly | Experience Fragments | HTL
Can I include xf directly on the AEM component through Sightly?
For ex:
this is existing code:
<sly data-sly-test=${currentStyle.myFlag}>
data-sly-resource="${ @9556322='myContent', resourceType='/apps/my-common/components/content/mycomponent'}"
data-sly-unwrap="${!wcmmode.edit}"></div>
</sly>
But now I have created an xf for mycomponent and now I want to directly use it on the AEM component.
Like:
<sly data-sly-test=${currentStyle.myFlag}>
data-sly-resource="${ @9556322='myXf', resourceType='content/experience-fragments/sprint/shared/mycomponentXF'}"
data-sly-unwrap="${!wcmmode.edit}"></div>
</sly>
Can anyone suggest is this possible or a good approach?