Angular doesn't recognize data-hover.
Can't bind to 'data-hover' since it isn't a known property of 'span'
I have tried span, div no luck. Existing page relies heavily on data-hover, so rewriting is not an option.
<a class="main-item" routerLink='{{ item?.url}}'>
<span class="main-item-hover" data-hover="{{item?.label}}">{{item?.label}}</span>
</a>
This piece of code works perfectly without angular
EDIT :
.main-item-hover:before {
content: attr(data-hover);
font-weight: 600;
position: absolute;
top: 100%;
}
This is how data hover is used in css.
Ideas?