Just starting out with the Ionic framework and I'm attempting to show the parameter passed from the home page on my new page. I've gone through the code below but so far, nothing is showing up. Any ideas on what might be missing?
Thanks in advance.
about.ts
export class AboutPage {
userProfile: any = null;
constructor(public navCtrl: NavController, public navParams: NavParams) {
this.userProfile = navParams.get("userProfile");
}
ionViewDidLoad() {
console.log('ionViewDidLoad AboutPage');
}
goBack() {
this.navCtrl.pop();
}
}
about.html
<ion-content padding>
<p>This is About Us Page.</p>
<ion-card *ngIf="userProfile">
<img [src]="userProfile.photoURL"/>
<ion-card-content>
<ion-card-title>
{{ userProfile.displayName }}
</ion-card-title>
<p>
The UID for this new user is {{userProfile.uid}} and the email is {{userProfile.email}}
</p>
</ion-card-content>
</ion-card>
</ion-content>