I have a button with the attribute mat-raised-button
<button mat-raised-button (click)="function()">My Button</button>
I would like to add or remove the mat-raised-button attribute with my function. Is there a way to do this? Or will I need to change the CSS instead?