Skip to content

Commit

Permalink
feature/doc — Little precision about why I mixed two API in order to …
Browse files Browse the repository at this point in the history
…process two related events.
  • Loading branch information
jeandat committed Aug 12, 2016
1 parent 50c7141 commit 329ed0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/favourite/favourite.factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@
// WARNING: when deleting, I'm using firebase directly because angularfire just give you the deleted key but not the actual
// record. And you can't get it yourself because by the time you get notified, the local one is already deleted.
// So in order to get best of both world and do what I want to do the easy way, I'm mixing here angularfire and pure firebase
// code.
// code which is kind of a good thing cause angularfire intent is not to replace the firebase sdk completely but just simplify
// integration with angular when it makes sense.
var ref = faves.$ref();
ref.on('child_removed', function (snapshot) {
var value = snapshot.val();
Expand Down

0 comments on commit 329ed0e

Please sign in to comment.