I have dynamic text to bind to aria-label
on a HTML page.
This is an Angular 2 app. I am using something like this:
aria-label="Product details for {{productDetails?.ProductName}}"
But I get an error:
Can't bind to 'aria-label' since it isn't a known property of 'div'.
Is there any workaround for this?
[attr.aria-label]="productDetails?.ProductName"
– Lattimer