title: Angular 5 View Not Updating After Timeout
body: <p>I'm setting a timeout to hide an element after a while in Angular 5: </p>
  
  <pre><code>this.showElement = true;
  setTimeout(function () {
    console.log('hide');
    this.showElement = false;
  }, 2000);
  </code></pre>
  
  <p>However, this doesn't update the view. The <code>console.log</code> gives me an output, so the timeout definitely works.</p>
  
  <p>I have found that in Angularjs you needed to call <code>$apply</code> in order to start a digest, so I'm guessing I just need to find the Angular 5 equivalent way of doing that.</p>