提供的参数与调用目标的任何签名都不匹配 - angularfire2
Supplied parameters do not match any signature of call target - angularfire2
请问我在使用 ionic 3 和 angularfire2 时如何解决这个问题
'Supplied parameters do not match any signature of call target' 当我
打电话
this.profileObject=this.db.object(`/profiles/${user.uid}`,{preserveSnapshot: true});
它声明只允许 1 个参数,但我查看了示例和文档,它们都允许选项参数 {preserveSnapshot: true }。
这是我下面的代码
profileObject: FirebaseObjectObservable<Profile>;
constructor(private db: AngularFireDatabase) {
console.log('Hello DataProvider Provider');
}
getProfile(user: User){
this.profileObject=this.db.object(`/profiles/${user.uid}`,{preserveSnapshot: true});
return this.profileObject.take(1);
}
谢谢,欢迎所有建议和回答
如果您使用的是最新的 Angularfire2 5.0.0-rc.3 那么这不是问题。
这是来自 Angularfire2 Author 的确认。
Not a problem in the newest version - David
请问我在使用 ionic 3 和 angularfire2 时如何解决这个问题
'Supplied parameters do not match any signature of call target' 当我 打电话
this.profileObject=this.db.object(`/profiles/${user.uid}`,{preserveSnapshot: true});
它声明只允许 1 个参数,但我查看了示例和文档,它们都允许选项参数 {preserveSnapshot: true }。 这是我下面的代码
profileObject: FirebaseObjectObservable<Profile>;
constructor(private db: AngularFireDatabase) {
console.log('Hello DataProvider Provider');
}
getProfile(user: User){
this.profileObject=this.db.object(`/profiles/${user.uid}`,{preserveSnapshot: true});
return this.profileObject.take(1);
}
谢谢,欢迎所有建议和回答
如果您使用的是最新的 Angularfire2 5.0.0-rc.3 那么这不是问题。
这是来自 Angularfire2 Author 的确认。
Not a problem in the newest version - David