title: Angular 2 background tasks
body: <p>I am trying to figure out if its possible to have background running process while the angular2 application is running.</p>
  
  <p>Example:</p>
  
  <ol>
  <li>on application login have task that constantly checks the expiration
  of token and if it expires, redirect to login</li>
  <li>have a task running in background to get latest updates from web api (i.e. inbox)</li>
  </ol>
  
  <p>With old school MVC models i used it was a lot simpler cron job that pushed to view layer, not sure what is possible with angular2.</p>