Is there anyway you can do calculation in the style binding target in Angular4 ?
I've tried
[style.width]="{{1+1}}"
[style.width]="{{1+1}}px"
[style.width]="{{1px+1px}}"
You can use [style.width.px]="1 + 1" in order to achieve that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With