angular - pass parameters oninit in typescript -
initpages(): void { this.authservice.authenticated.subscribe(authenticated => { if (authenticated === true) { this.authservice.user.subscribe(user => { if (user !== null) { this.displayname = user.displayname **this.fbuid = user.providerdata[0].uid** this.fbimage = `https://graph.facebook.com/${this.fbuid}/picture?type=large` this.userservice.setonline(this.fbuid) this.userservice.setfcmtoken(this.fbuid) this.userservice.setdevice(this.fbuid) this.userservice.setgeoposition(this.fbuid) t} i want pass this.fbuid parameter new page on initialisation. how pass parameter new page? can give answer passing varible
Comments
Post a Comment