0

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]"
Shweta
  • 1

1 Answers1

0

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

Shweta
  • 1