title: Angular unable to execute setTimeout on DoCheck hook
body: <p>I'm testing for changes in every cycle and apply a certain class upon calculated value. I need to remove this class after 1 second. Currently the app freezes and I cant understand why.
  Here's the code:</p>
  <pre><code>  ngDoCheck():void {
       const posClass = &quot;positive-change&quot;;
       const negClass = &quot;negative-change&quot;;
       const that = this;
  
       if(this.value1 - this.value2&gt; 0){
          this.color = posClass;
        }else{
          this.color = negClass;
        }
        setTimeout(() =&gt; 
        {
          this.color = &quot;default&quot;;
        },500);
    }
  </code></pre>
  <p>This works well without the timeout. I'm just unable to remove the class after the delay. How can this be solved?</p>