Hey, recently I noticed angularfire removed the method child().

I would like to know what is to correct way to handle child nodes:

var ref = new Firebase(FIREBASE_URL + 'posts');
var posts = $firebase(ref);

var Posts = {
    create: function(foo) {
       return posts.$push({some: foo});
    },
    find: function(postId) {
           // no child method so I need another ref?
           var postref = new Firebase(FIREBASE_URL + 'posts/' + postId)
           return $firebase(postref);
    }
}

also, if I want to add multiple number of child nodes

e.g posts/postId/comments/...

is the only way to do this with $set ?

Thanks alot,
Dor

--
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/e54f3ee8-90be-4c20-b5f5-c9c52a54e999%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
groupfirebase-angular @
postedAug 7, '14 at 3:43p
activeAug 8, '14 at 8:18p
posts4
users2

2 users in discussion

Dor Cohen: 2 posts Michael Wulf: 2 posts

People

Translate

site design / logo © 2021 Grokbase