I dont think an if expression does work in ngClass try using something like this <div (click)="toggle()" [ngClass]="{'test': active, ...
確定! 回上一頁