I added a condition in the ngClass and a class like given below. there is no issue here.
[ngClass]="!tableOnly ? 'height-100p-48px' : 'full-height'"
.height-100p-48px {
height: calc(100% - 48px);
}
But when I change the class in the condition to something like this (notice the difference, 48 changed to 40)
[ngClass]="!tableOnly ? 'height-100p-40px' : 'full-height'"
The height-100p-40px css class is not defined.
the page freezes the main thread and kills the browser. What could be the reason for this? I believed that the missing CSS classes should not cause any errors?