ngClass toggle code example Example: angular onclick toggle class // component.ts toggleClass: boolean = false; // component.html Confirm