You can use ngClass Example [ngClass]="{'show': tabIndex === 2}". Here the implemented code for the above scenario. HTML CODE
確定! 回上一頁