Need to modify image feature of a teaser component
In the teaser, I am able to use image. But I wanted to add some extra div class while displaying image. When I check the teaser.html, this refers to the image.html file in the same component. Whereas image.html file only this code:
<sly data-sly-template.image="${@ teaser}">
<div class="cmp-teaser__image" data-sly-test="${teaser.imageResource}" data-sly-resource="${teaser.imageResource}"></div>
</sly>
How can I modify these parts?
Note: I have modified my custom image component as per the requirement. The same way I need to modify the image which is present in the teaser component.
Thanks in advance.