angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

af.database.list('items').push does not work with query

Open morninng opened this issue 10 years ago • 1 comments

This code works properly ///////////////////////////// items: FirebaseListObservable<any[]>; t constructor( af: AngularFire ) { this.items = af.database.list('items'); } this.items.push({name:"xxxxxxx"}); /////////////////////////////

But this code does not work. ////////////////////////////////////////// items: FirebaseListObservable<any[]>; t constructor( af: AngularFire ) { this.items = af.database.list('items', query: { limitToLast:this.comment_limit_subject }); } this.items.push({name:"xxxxxxx"}); ////////////////////////////////////////////// second one works to retrieve data but it failed to push the data I need two af.database.list to retrieve data and to push data as of now.

morninng avatar Jul 28 '16 16:07 morninng

sorry it maybe the collect behavior I close by myself

morninng avatar Jul 28 '16 17:07 morninng