AngularFire Accessing child element methods
I'm looking for a way to get the methods of a child element instead of loading that element separately. Let's say I have a Post model and each post has comments. This is how I get the post model: var post = $firebase(new Firebase(FIREBASE_URL + "/posts/" + post_name)).$asObject(); Each post has comments so I can access the comments using: post.$loaded(function () { var comments = post.comments; } Now how do I push a new element to comments without having to load the model separately from Firebase? I should be able to do the following but it doesn't work: comments.$add({text: "Hi, there"}); Is