I have below code to query the index from users node then pass the index to todos node to get the data I want but it only watching when a child is added so when a child is removed in the index it doesn't update the view.
I have no idea how to get the object key if I use value in the index node.
Any idea? or any better way to query mastered data using angularFire?
FirebaseRef.$child(user.uid).$on('child_added', function(a) {
FirebaseRef.$child('todos/' + a.snapshot.name).$on('value', function(b) {
$scope.todoList[a.snapshot.name] = b.snapshot;
});
});