Is there a way to attach multiple css classes to the click event of the Submit button in Angular? I want the style to change when the button is clicked.
HTML
<div class="mainbody" [ngClass]="getStyle">
<button (click)="getStyle= !getStyle">Submit</button>
</div>
TypeScript
export class AppComponent {
style1: boolean = true;
style2: boolean = true;
}
getStyle()