title: Ionic: load same page with different parameters
body: <p>I have a page which has a text input field and a button. Upon entering data in text input and clicking search a Api call is made with the input text and results are displayed below the button, Here is my code</p>
  
  <p>template,</p>
  
  <pre><code>&lt;ion-input type="text" [(ngModel)]="location"&gt;&lt;/ion-input&gt;
  &lt;button (click)="onSearch()"&gt;Search&lt;/button&gt;
  &lt;ion-list&gt;
  //display search results here
  &lt;/ion-list&gt;
  </code></pre>
  
  <p>Component,</p>
  
  <pre><code>//SearchPage
  onSearch() {
      //api call to get list of restaurants in the location
  }
  </code></pre>
  
  <p>User can also change the data in input and search again.This is working but when user searches two or more times and hits back button he will be navigated back to home page and not to the previous search. </p>
  
  <p>Is there a way to push the same page("SearchPage" here) to navControl upon every click of search button by passing the input data ? So that the back button works as intended?</p>
  
  <p>These changes worked for me
  In component </p>
  
  <pre><code>OnInit() {
      location=this.navParams.get('data');
      //Api call using location fetched from navParams
  }
  onSearch(){
      this.navController.push(SearchPage,{data:this.location})
  }
  </code></pre>