I want to implement similar but my requirement is little different.
I get Expiry time(in seconds, lets say 500 seconds) from database and displaying in Data Grid. The expiry time is one of the columns in Data Grid.
I want to implement countdown in Column and when time comes down to 30 seconds, I want to change column color to yellow and to red in 10 seconds.
How can I implement after getting data from database. Here is my existing code.
this.service
.GetsTransactions()
.subscribe(
(response: Model[]) => {
this.transactionsData = response;
},
error => {
console.error(error);
}
);