Trigger .trigger('contentUpdated')
on the element where dynamic content is injected.
$.ajax({
url: 'https://www.example.com',
method: 'POST',
data: {
id: '1'
},
success: function (data) {
$('.example-element').html(data)
.trigger('contentUpdated')
}
});
Exactly what I was looking for, first hit. Cool, thanks!
PS: This also works with content generated with Knockout (templates)