Is it possible to utilize a variable width in my Angular 5 component template? I would like to achieve something similar to this:
<style>
input:checked + .slider:before {
transform: translateX({{width}}px);
}
</style>
The 'width' is defined as a variable within the component!
Unfortunately, the "{{width}}" is not being parsed. Can anyone advise on how to implement this functionality? Thank you!