Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to get one items from my Firebase realtime Database with Angular Ionic

this.afAuth.authState.subscribe(
  (res)=>{
    this.profileData = res.uid;
    console.log(this.profileData);      
  }
  this.db.list("users/"+this.profileData).valueChanges().subscribe(details => {
    this.name =details["name"];
    this.prenom = details["prenom"];
    console.log(details);  
  })
)
 
PREVIOUS NEXT
Tagged: #How #items #Firebase #realtime #Database #Angular #Ionic
ADD COMMENT
Topic
Name
8+3 =