Skip to content

Instantly share code, notes, and snippets.

@evgenyfedorenko
Last active July 30, 2019 14:00
Show Gist options
  • Save evgenyfedorenko/978922e33ee3d60d330e42dae80467d2 to your computer and use it in GitHub Desktop.
Save evgenyfedorenko/978922e33ee3d60d330e42dae80467d2 to your computer and use it in GitHub Desktop.
...
@Component({
selector: 'list',
templateUrl: './list.component.html',
styleUrls: ['./list.component.scss']
})
export class ListComponent implements OnChanges {
@Input() rows: Transaction[];
...
public getRowClass(row: Transaction) {
return {
'active': this.trService.isActive(row),
'rejected': this.trService.isRejected(row),
'accepted': this.trService.isAccepted(row)
};
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment