Below is my code
<table class="table table-hover" id="orderTbl" [ngClass]="{'maxZeroHeight':maxZeroHeight}>
Is it possible to use like above or is there a different way
[ngClass] you should use when there are multiple classes to be applied based on the expression. You should use [class.classname]="expression" for single expression and single class to be applied.
Otherwise there is no issue, whatever you have mentioned.
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