'Type 'boolean' cannot be used as an index type
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]"
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Shweta |
