title: Ionic v3 pass value to another page
body: <p>I need your help. I want to pass data written by user in a text field to another page. My goal is to use the data passed as variable in the second page to print in console.log.</p>
  
  <p>The problem is that I can see in console.log the right value (what I write in text field) and an "undefined" at the same line of the same page.</p>
  
  <p>In my first page.ts I have </p>
  
  <pre><code>export class LoginPage {
  
  public nomeUtente: string;
  
  
  constructor(
    public navCtrl: NavController,
  
  ) {
  
  }
  
  nomeScelto() {
    let nomeUtente = this.nomeUtente;
    this.navCtrl.push(HomePage, {data: nomeUtente});
      return {
        data :nomeUtente
      }
  }
  </code></pre>
  
  <p>and in the corresponding html</p>
  
  <pre><code>    &lt;ion-content padding&gt;
    &lt;form [formGroup]="loginForm" (submit)="loginUser()" novalidate&gt;
  
      &lt;ion-item&gt;
        &lt;ion-label stacked&gt;Codice Matrimonio&lt;/ion-label&gt;
        &lt;ion-input formControlName="email" type="text" placeholder="Inserisci qui il codice"
          [class.invalid]="!loginForm.controls.email.valid &amp;&amp; blur"&gt;&lt;/ion-input&gt;
      &lt;/ion-item&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;ion-item&gt;
        &lt;ion-label stacked&gt;Nome&lt;/ion-label&gt;
        &lt;ion-input type="text" [(ngModel)]="nomeUtente" placeholder="Inserisci il tuo nome" [ngModelOptions]="{standalone: true}"&gt;&lt;/ion-input&gt;
      &lt;/ion-item&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;button ion-button block type="submit" [disabled]="!loginForm.valid"&gt;
        Accedi!
      &lt;/button&gt;
    &lt;/form&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p>So, now I have this in my HomePage</p>
  
  <pre><code>    export class HomePage {
  
    nomeUtente: any;
  
  constructor(
    private camera: Camera,
    public navCtrl: NavController,
    alertCtrl: AlertController,
    public zone: NgZone,
    public navParams: NavParams,
  
  ) {
    this.alertCtrl = alertCtrl;
  
    let nomeUtente = navParams.get('data');
  
    console.log(nomeUtente);
    }
  </code></pre>
  
  <p>and in console.log I see</p>
  
  <p>exactlyWhatIWriteInNomeUtente     home.ts:33</p>
  
  <p>undefined                         home.ts:33</p>
  
  <p>Do you have any suggest?</p>