Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Dynamic path to data-sly-resource from javascript

Avatar

Level 1

I am creating HTML based on the response from ajax call. I need to include one of the components those many times based on the response of ajax call.

var ajaxCallResp = [object,object,..];

I am using slick js for carousel behavior. For each object in "ajaxCallResp", I need to create the component with different ID in javascript.

Can you please let me know how to achieve?

1 Accepted Solution

Avatar

Correct answer by
Level 10

It won't work,

data-sly-resource gets compiled at server, so JS at browser wont have any control

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

It won't work,

data-sly-resource gets compiled at server, so JS at browser wont have any control