Node.js 在firebase的离子3中显示用户数据
我对.val()属性有问题 this.userProfile=profile.val();>> }) }) 为什么要使用.val()?它不可能是profile的函数,您甚至可以显示profile接口,它没有val()函数 你能把它设置成这样吗?订阅中配置文件的价值是什么Node.js 在firebase的离子3中显示用户数据,node.js,angular,firebase,ionic3,angularfire,Node.js,Angular,Firebase,Ionic3,Angularfire,我对.val()属性有问题 this.userProfile=profile.val();>> }) }) 为什么要使用.val()?它不可能是profile的函数,您甚至可以显示profile接口,它没有val()函数 你能把它设置成这样吗?订阅中配置文件的价值是什么 ngOnInit(): void { this.auth.getAuthenticatedUser().subscribe((user: User) => { this.data.getProfil
ngOnInit(): void {
this.auth.getAuthenticatedUser().subscribe((user: User) => {
this.data.getProfile(user)
.valueChanges()
.subscribe((profile: Profile) => {
this.userProfile = profile;
// What is the value of profile? Console log it? Debug it?
})
})