title: Error: Uncaught (in promise): TypeError: Cannot read property 'title' of undefined
body: <p><strong>html file</strong></p>
  
  <pre><code>&lt;ion-header&gt;
    &lt;ion-toolbar color="danger"&gt;
      &lt;ion-buttons&gt;
        &lt;button ion-button navPop icon-only&gt;
          &lt;ion-icon ios="ios-arrow-back" md="md-arrow-back"&gt;&lt;/ion-icon&gt;
        &lt;/button&gt;
      &lt;/ion-buttons&gt;
        &lt;ion-title text-wrap&gt;志愿者评选&lt;/ion-title&gt;
    &lt;/ion-toolbar&gt;
  &lt;/ion-header&gt;
  
  &lt;ion-content&gt;
      &lt;h1&gt;{{volunteer.title}}&lt;/h1&gt;&lt;br/&gt;
  &lt;/ion-content&gt;
  </code></pre>
  
  <p><strong>ts file</strong></p>
  
  <pre><code>import { Component } from '@angular/core';
  import { NavController, NavParams } from 'ionic-angular';
  
  
  @Component({
    selector: 'page-volunteer-vote-detail',
    templateUrl: 'volunteer-vote-detail.html',
  })
  
  export class VolunteerVoteDetailPage {
    volunteer:any;
  
    constructor(public navCtrl: NavController, public navParams: NavParams) {
      this.volunteer = navParams.get('volunteer');
    }
  
  }
  </code></pre>
  
  <p>In other pages, I used <code>this.volunteer = navParams.get('volunteer');</code> for get data, but here cannot get data and showing error for me</p>
  
  <p><strong>Error:</strong></p>
  
  <blockquote>
    <p>ERROR Error: Uncaught (in promise): TypeError: Cannot read property
    'title' of undefined TypeError: Cannot read property 'title' of
    undefined
        at Object.eval [as updateRenderer] (VM3975 VolunteerVoteDetailPage.ngfactory.js:64)
        at Object.debugUpdateRenderer [as updateRenderer] (VM3846 vendor.js:14729)
        at checkAndUpdateView (VM3846 vendor.js:13865)
        at callViewAction (VM3846 vendor.js:14210)
        at execComponentViewsAction (VM3846 vendor.js:14142)
        at checkAndUpdateView (VM3846 vendor.js:13866)
        at callWithDebugContext (VM3846 vendor.js:15092)
        at Object.debugCheckAndUpdateView [as checkAndUpdateView] (VM3846 vendor.js:14629)
        at ViewRef_.detectChanges (VM3846 vendor.js:11652)
        at Tab.NavControllerBase.<em>viewAttachToDOM (VM3846 vendor.js:49817)
        at Object.eval [as updateRenderer] (VM3975 VolunteerVoteDetailPage.ngfactory.js:64)
        at Object.debugUpdateRenderer [as updateRenderer] (VM3846 vendor.js:14729)
        at checkAndUpdateView (VM3846 vendor.js:13865)
        at callViewAction (VM3846 vendor.js:14210)
        at execComponentViewsAction (VM3846 vendor.js:14142)
        at checkAndUpdateView (VM3846 vendor.js:13866)
        at callWithDebugContext (VM3846 vendor.js:15092)
        at Object.debugCheckAndUpdateView [as checkAndUpdateView] (VM3846 vendor.js:14629)
        at ViewRef</em>.detectChanges (VM3846 vendor.js:11652)
        at Tab.NavControllerBase._viewAttachToDOM (VM3846 vendor.js:49817)
        at c (VM3844 polyfills.js:3)
        at Object.reject (VM3844 polyfills.js:3)
        at Tab.NavControllerBase._fireError (VM3846 vendor.js:49580)
        at Tab.NavControllerBase._failed (VM3846 vendor.js:49573)
        at VM3846 vendor.js:49620
        at t.invoke (VM3844 polyfills.js:3)
        at Object.onInvoke (VM3846 vendor.js:4979)
        at t.invoke (VM3844 polyfills.js:3)
        at r.run (VM3844 polyfills.js:3)
        at VM3844 polyfills.js:3</p>
  </blockquote>
  
  <p>Edit:</p>
  
  <p><a href="https://i.stack.imgur.com/BbwrQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BbwrQ.png" alt="enter image description here"></a></p>
  
  <p>UPDATE:</p>
  
  <p><strong>ts file</strong></p>
  
  <pre><code>goToVolunteerVoteDetail(volunteerItem:any) {
      this.navCtrl.push(VolunteerVoteDetailPage,{
        volunteer:volunteerItem
      });
    }
  </code></pre>
  
  <p><strong>html file</strong></p>
  
  <pre><code>(click)="goToVolunteerVoteDetail(volunteer)"
  </code></pre>