title: http request every x seconds in angular
body: <p>I'm trying to refresh an http call every x seconds in angular2.</p>
  
  <pre><code>  ionViewDidLoad() {
  
      let loader = this.LoadingController.create({
        'content':'Please Wait'
      });
      loader.present().then(()=&gt;{
        this.http.request('http://mywebserver.com/apps/random.php').map(res=&gt; res.json()).subscribe(data=&gt;{
          console.log(JSON.stringify(data));
          loader.dismiss();
          this.fact = data;
        },err=&gt;{
          loader.dismiss();
          let alert = this.alertCtrl.create({
            title: 'Error!',
            subTitle: 'Please check your Internet Connectivity',
            buttons: ['OK']
          });
        alert.present();
      })
      })
  
    }
  </code></pre>
  
  <p>I get data when the page newly loads. But now my issue is refreshing the http call to get new data every x seconds</p>