i'm so new in firebase, so i need some very basic help.
I have collection "Users" in firestore, whene i have documents with key (user id) and every document have some fields.
In my component i have variable userData: Observable<any[]>
After user login i want find his id in documents and get his info to userData variable.
...
.then(user => {
this.authState = user;
// Here i want get user data and set it to my variable
this.userData = this.afs.collection('Users').document(user.uid);
this.router.navigate(['/']);
})
But obviously, this is does not work. I will be gratfull for any help or tips with my question, thanks&
