Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 在firebase的离子3中显示用户数据_Node.js_Angular_Firebase_Ionic3_Angularfire - Fatal编程技术网

Node.js 在firebase的离子3中显示用户数据

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

我对.val()属性有问题

this.userProfile=profile.val();>> }) }) 为什么要使用.val()?它不可能是profile的函数,您甚至可以显示profile接口,它没有val()函数

你能把它设置成这样吗?订阅中配置文件的价值是什么

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?
    })
})