af.database.list('items').push does not work with query
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.
sorry it maybe the collect behavior I close by myself