Angular ngClass and click event for toggling class. This should work for you. In .html: <div class="my_class" (click)="clickEvent()" [ngClass]="status ?
確定! 回上一頁