Use Following CSS in your .css or .scss file to set the different style for even/odd row:
.mat-row:nth-child(even){
background-color: red;
}
.mat-row:nth-child(odd){
background-color: black;
}
Use Following CSS in your .css or .scss file to set the different style for even/odd row:
.mat-row:nth-child(even){
background-color: red;
}
.mat-row:nth-child(odd){
background-color: black;
}