I have this ngStyle below that works like this
[ngStyle]="{'height': true ? '100vh' : null }"
but doesn't work (get applied) when I use a calc like this
[ngStyle]="{'height': true ? 'calc(100vh-100px)' : null }"
Can anyone tell me why?
I have this ngStyle below that works like this
[ngStyle]="{'height': true ? '100vh' : null }"
but doesn't work (get applied) when I use a calc like this
[ngStyle]="{'height': true ? 'calc(100vh-100px)' : null }"
Can anyone tell me why?
Copyright © 2021 Jogjafile Inc.
All you need it space before and after
-
. like this -[ngStyle]="{'height': true ? 'calc(100vh - 100px)' : null }"