We use ng-repeat directive instantiates a template once per item from a collection
Here is the code snippet:
Our requirement is to set each row's background color depends on the date is workday or weekend. If the date is workday, then set its background color to white. If the date is weekend, then set its background color to yellow.
Apply ngStyle directive set CSS style on an HTML element conditionally.
Here is the code snippet for HTML: