I am trying to apply style to pseudo element :after
<a class="overflow">{{item?.eco}}</a>
I need to change the background color of a:after and that I need to handle in html
something like [style.background]="red" to a:after in Html not in css
css
.featured-image:after { content: '';
background-color: var(--custom); }
html
<a class="featured-image"[style]="sanitizer.bypassSecurityTrustStyle('--custom:' + red)"></a>
ts
this.color = sanitizer.bypassSecurityTrustStyle('--custom')
I tried something like this but its not working
What is the way to do this? Any help would be much appreciated...