问题
Is the child_added event in angularfire is different in child_added on firebase?
why angularfire return all list including value after child_added while in firebase it only return la
this.userList = this.room.getAllUser();
this.userList.snapshotChanges()
.subscribe(actions => {
console.log(actions);
actions.forEach(action => {
console.log(action.type);
console.log(action.key);
console.log(action.payload.val());
})
Do I need to scan again the response and compare the key if in array ? before pushing it ?
来源:https://stackoverflow.com/questions/47113599/angularfire2-child-added-event-return-all-data-again