Upgrading angular 11 to angular 13 getting issue like Type 'boolean' cannot be used as an index type can i know what need to change in below code.
[ngClass]="{true: 'through'}[employee.status]"
Upgrading angular 11 to angular 13 getting issue like Type 'boolean' cannot be used as an index type can i know what need to change in below code.
[ngClass]="{true: 'through'}[employee.status]"
Type 'boolean' cannot be used as an index type issue is fixed by changing the
[ngClass]="{'through' :employee.status }"
by referring to Angular: conditional class with *ngClass