Hello i want to display a user’s profile pic. I am returning other user details from home page to User profile page.
home.ts
UserPage(uid_fk, username, bio, profile_pic) {
this.navCtrl.push(UserPage, { uid_fk: uid_fk, username: username, bio: bio, profile_pic: profile_pic });
}
the uid, username, and bio are returning ok. But i can not display the image.
userprofile.ts
export class UserPage {
public uid_fk: string;
public username: string;
public bio: string;
public profile_pic: string;
public noRecords: boolean;
public userDetails: any;
public resposeData: any;
public dataSet: any;
userPostData = {
};
constructor(
public common: Common,
public navCtrl: NavController,
public app: App,
public menuCtrl: MenuController,
public navParams: NavParams,
public authService: AuthService
) {
this.uid_fk = navParams.get('uid_fk');
this.username = navParams.get('username');
this.bio = navParams.get('bio');
this.profile_pic = navParams.get('profile_pic');
}
userprofile.html
{{uid_fk}}
{{username}}
{{bio}}