In my code, I have a list of cells, and I am displaying that list in the form of buttons. On those buttons, you can see the number of elements inside the cell. If a cell is empty, I want it the button to be green and if it has any elements in it, I want it to be red. My code is below, how can I do this?
<button mat-button class="green fuse-white-fg"
*ngFor="let prm of cell">Package Count: {{prm.PackageCount}}</button>