title: Expire time Countdown in Angular 6
body: <p>I want to implement similar but my requirement is little different.</p>
  
  <p><a href="https://stackoverflow.com/questions/50437328/countdown-timer-in-angular-6">Countdown timer</a></p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>How can I implement after getting data from database. Here is my existing code.</p>
  
  <pre><code> this.service
    .GetsTransactions()
    .subscribe(
      (response: Model[]) =&gt; {
        this.transactionsData = response;
      },
      error =&gt; {
        console.error(error);
      }
    );
  </code></pre>