Within the template section
<tr *ngFor='let activity of pagedWorkflowActivities' [style.background-color]="setBackgroundColor(activity)">
In the component section
setBackgroundColor(activity: WorkflowActivity) {
return 'red';
}
The code above was implemented in the same component where all other related events for the template are located. I believe this is the appropriate place for it. However, I am encountering an error message in the developer tools:
self.parent.context.setBackgroundColor is not a function