2016-11-06 2 views

답변

1

push 방법은 이제 관찰 가능한 반환으로, 적절한 방법은 생성 된 $key이 (AF2를 사용하여) 다음을 수행한다 얻을 :

let fb = this.af.database.list('/path'); 
fb.push('item').then(res => console.log(res.key));