Can TypeScript variables be accessed in SCSS code within an Angular component?
I am looking to achieve the following:
<style type="text/css">
.source-status-{{ event.status.id }}::before {
border-left: 20px solid {{ event.status.color }};
}
</style>
<div class="source-status-{{ event.status.id }}">
...
</div>
Is it possible to manipulate CSS properties of a ::before
pseudo element in an Angular component?