this.currentUser$=this.afs.doc('users/'+this.authState.uid).valueChanges().pipe();
When I am using in component.html like
{{ currentUser$|async|json}}
I am getting it like below:
{
"photoUrl": "",
"password": "",
"mobileVerified": true,
"id": "izoNRvk0moN579KqfQ1cVqNvpZJ2",
"phone": "5544663311",
"email": "[email protected]",
"name": "Rob B",
"userRole": "admin"
}
Now for example I want to access just email or userRole, how I can do it?