how can I easily replace the .$child statement in a find-function such as
this:
findByUsername: function (username) {
if (username) {
return return users.$child(username);
}
}
where users =
var ref = new Firebase(FIREBASE_URL + 'users');
var users = $firebase(ref);
Which is pretty streight forward.
With Angular 0.8 and .$child removec I've tried to load all users into an
object by:
var allUsers = users.$asObject()
but what is next step if I want to find certain user within this object?
oh and is there an easy way to replace the .$on in:
$rootScope.$on('$firebaseSimpleLogin:login', function (e, authUser) {
(...)
}
is that needed?
Regards
--
You received this message because you are subscribed to the Google Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-angular+unsubscribe@googlegroups.com.
To post to this group, send email to firebase-angular@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-angular/6590907d-8756-41eb-bff8-3f7a976921a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.