Below is the mark up
<mat-card class="example-card" *ngFor="let filteredScreen of
filteredScreens" let i = index >
<mat-card-header>
<div mat-card-avatar class="example-header-image" >
<img mat-card-image class="list-img" src="
{{filteredScreen?.img}}" >
</div>
<mat-card-content class="names" [innerHTML]="filteredScreen.name
| highlight: name" >{{
filteredScreen?.name }}
</mat-card-content>
</mat-card-header>
</mat-card>
How can i change the
<mat-card>
background color on mouse click(not mouse hover) to any color,and
<mat-card-content>
color to any color permanently in angular. I have done changing the background color on mouse hover but i want it on click.