79564736

Date: 2025-04-09 15:36:58
Score: 2
Natty:
Report link

first try create CSS classes like .color-red, .color-blue, and .color-green with the desired color styles.

Then, in your controller, make sure you correctly assign the status using .includes() instead of .contains(), like this: self.clientStatus = self.filesToUploadClientStatus.includes(WAITING_FOR_UPLOAD) ? 'OK' : 'Error';.

lastly, in your HTML, use ng-class to conditionally apply the color classes based on the status, so the color updates automatically when the status changes.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Quwan Powell