Skip to content

Commit

Permalink
child() method missing
Browse files Browse the repository at this point in the history
The call to child("messages") method is missing in line 145 thus, the Controller (ChatCtrl) won't be able to get the messages collection
  • Loading branch information
brandonvilla21 committed Jun 27, 2017
1 parent c4ac69f commit 1cb2238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/synchronized-arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ var app = angular.module("sampleApp", ["firebase"]);
app.factory("chatMessages", ["$firebaseArray",
function($firebaseArray) {
// create a reference to the database where we will store our data
var ref = firebase.database().ref();
var ref = firebase.database().ref().child("messages");

return $firebaseArray(ref);
}
Expand Down

0 comments on commit 1cb2238

Please sign in to comment.