saveDetails(){
this.afAuth.authState.take(1).subscribe(auth => {
this.af.object('request/${auth.uid}').set(this.request)
.then();
})
Run Code Online (Sandbox Code Playgroud)
执行此方法后,出现错误:Firebase.child失败:第一个参数是无效路径:"request/$ {auth.uid}".路径必须是非空字符串,并且不能包含".","#","$","["或"]".尝试删除$,但这不起作用.很确定我也没有传递空字符串.
javascript firebase firebase-realtime-database ionic2 angular