I am in need to trigger some script with "text/x-magento-init" on ajax call but I am unable to do so.
trigger('contentUpdated')
contentUpdated is also not working in my case.
I am using contentUpdated as:
$('.page-footer').html(response.categoryProducts);
$('.page-footer').trigger('contentUpdated');
On console log(response.categoryProducts) I can see that x-magento-init script but the effect is not shown on frontend on using this way.
Any help ??