title: Can anyone give an InAppBrowser sample app for the Ionic 2 framework?
body: <p>Can anyone give an <code>InAppBrowser</code> sample app? I am new to Ionic 2 and I just can't get it running. </p>
  
  <pre class="lang-ts prettyprint-override"><code>import {Component} from '@angular/core';
  import { Slides } from 'ionic-angular';
  import {InAppBrowser} from 'ionic-native';
  
  @Component({
    templateUrl: 'build/pages/hello-ionic/hello-ionic.html'
  })
  export class HelloIonicPage {
  
    constructor() {
   }
  
  openBrowser(){
  let browser = new InAppBrowser('https://ionic.io', '_system');
  }
  
  }
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;ion-header&gt;
    &lt;ion-navbar&gt;
      &lt;button menuToggle&gt;
        &lt;ion-icon name="menu"&gt;&lt;/ion-icon&gt;
      &lt;/button&gt;
      &lt;ion-title&gt;Hello Ionic&lt;/ion-title&gt;
    &lt;/ion-navbar&gt;
  &lt;/ion-header&gt;
  
  &lt;ion-content class="content"&gt;
  &lt;button (click)="openBrowser()"&gt;Open Browser&lt;/button&gt;
  
  &lt;/ion-content&gt;
  </code></pre>
  
  <p>This throws the following error:</p>
  
  <pre><code>TypeScript error: C:/Users/Chirag Jagga/IonicFinal/app/pages/hello-ionic/hello-ionic.ts(14,15): Error TS2346: Supplied parameters do not match any signature of call target.
  </code></pre>
  
  <p>taken from : <a href="http://ionicframework.com/docs/v2/native/inappbrowser/" rel="nofollow">http://ionicframework.com/docs/v2/native/inappbrowser/</a> </p>