title: How to refresh a page or refresh ngOnInit() in ionic 2
body: <p>i'm wondering if there is a way to refresh the ngOnInit() function or refresh the component. i don't wanna use the pull to refresh method. i want to do it on button click or tap. Thank you</p>
  
  <p>home.ts file</p>
  
  <pre><code>  checkNetwork() {
    console.log("check internet");
  this.platform.ready().then(() =&gt; {
    if(this.network.type == "none"){
      this.shouldHide = false;
      this.dividerHide = true;
    }
      let alert = this.alertCtrl.create({
          title: "Connection Status",
          subTitle: &lt;string&gt; this.network.type,
          buttons: ["OK"]
      });
    alert.present();
  });
  }
  </code></pre>
  
  <p>home.html file</p>
  
  <pre><code>&lt;ion-card [hidden]="shouldHide"&gt;
  &lt;ion-card-header&gt;
    &lt;img src="img/sad.png" /&gt;
  &lt;/ion-card-header&gt;
  &lt;ion-card-content&gt;
    &lt;ion-card-title style="text-align:center"&gt;
      No INTERNET!
    &lt;/ion-card-title&gt;
    &lt;button ion-button full (click)="refreshPage($event)"&gt;Retry&lt;/button&gt;
  &lt;/ion-card-content&gt;
  </code></pre>
  
  <p></p>
  
  <p>when the connection will be available i want the page to refresh</p>