I want to add 'tourAnchor' attribute dynamically, for which I am adding below line.
<div [attr.tourAnchor]=" feedbackIndex == 0 ? 'like' : null">
But, the attribute is being replaced to case insensitive and upon condition check, it is being converted as
<div touranchor="like">
Could you please help me to retain 'tourAnchor' to be camel case?
Html is not case sensitive and tags and attributes considered to be lowercase check this , when I face this problem I use data attribute to save the key and another for the key
May be this will work for you
template
style
stackblitz demo