I'm facing a challenge with this code. I need to dynamically set the width of the "wrap-description" divs to be equal to the width of the corresponding "picture-damage" images plus an additional 20 pixels. Since there will be multiple elements for both "picture-damage" and "wrap-description", each with different sizes, I have been experimenting with directives and ngStyle without success. Any suggestions on how I can achieve this?
Thank you.
<ul>
<li ng-repeat="damagepic in damagesPicture">
<div>
<div>
<div>
<img ng-class="picture-damage"/>
<div ng-class="wrap-description"/>
</div>
</div>
</div>
</li>
</ul>