Angular app using cloudinary image component not updating alt tags

jsch15
jsch15 Member Posts: 5
edited August 28 in Developer APIs

Hi,

I have an angular app using CloudinaryImageComponent <advanced-image> and update the image when a user selects something they want to see. structured like this

— cldImage.component —

<advanced-image …. [alt]=alt></advanced-image>

— customcomponent.component —

<cldImage … [alt]=alt></cldImage>

I see the alt tag change in devtools on the advanced image but the img tag produced from CloudinaryImageComponent does not update the alt tag. I have no issues with the image changing, just the alt tag changing

output:

<cldImage ng-reflect-alt="altTag2">

<advanced-image ng-reflect-alt="altTag2>

<img alt="altTag1">

</advanced-image>

</cldImage

Tagged:

Comments

  • Zachary
    Zachary Member, Cloudinary Staff Posts: 42

    Hi there,

    Does changing your syntax to alt="{{dynamicText}}" fix the issue?

  • jsch15
    jsch15 Member Posts: 5
    edited August 28

    it does not! you can see here i started with 1 then selected 2 and the advanced image is reflecting that change but img from there isnt updating. it updates when the page loads but when i select new content it doesnt update. (ignore the …. its for privacy) @Zachary

  • Tom
    Tom Member, Cloudinary Staff Posts: 96

    Hi @jsch15 ,

    Thanks for replying.

    So this is looking like bug so I've opened an internal ticket for our SDK team to investigate this further.

    I do not have an ETA currently but we will update you as soon as we know more.

    Please let me know if you have any other questions or queries.

    Kind Regards,

    Thomas

  • jsch15
    jsch15 Member Posts: 5

    thank you so much! I’m also having trouble sending an empty alt tag through the same way. It shows on the advanced image tag but doesn’t show any alt on the img tag created from there. @Tom

  • Tom
    Tom Member, Cloudinary Staff Posts: 96

    @jsch15 thanks for the update, that's probably related as well and I will make sure to mention it internally.