I've been trying to understand this issue by looking at similar questions, but I'm still stuck. This is the response I get from Firebase:
'{"users":[null,{"-JFhOFSUwhk3Vt2-KmD1": {"color":"White","model":"650i","year":"2014","make":"BMW"}, "-JGW6vwYtnfoIxeQlwCq": {"color":"Red","model":"AMG","year":"2014","make":"Mercedes"}},{"-JFhNnaAq1rr_SHzJcIr":{"color":"Red","model":"F150 FX4","year":"2014","make":"Ford"}},{"-JFhYXNpUG3wSMcfB3Uz":{"color":"Blue","model":"AMG","year":"2014","make":"Mercedes"}},null,null,null,{"- JFly1lt6UWj-r2985ed":{"color":"red","model":"650i","year":"2014","make":"bmw"}}]}'
These cars belong to 2 different users and I want to display the information in a table. How can I utilize parse to achieve this? Here's what the call looks like:
$scope.read = function () {
$http.get(BaseUrl + ".json").success(function (data) {
$scope.AllCars = data
});
}
Currently, I can log in with each user and display the cars they have entered on a table using Angular. Every time they add a car, it creates a new row. My goal is for any user to see their cars as well as others. I aim to fetch this data and populate a separate table. Since the data will be constantly changing, I assume I need to handle potential updates in the code.
This is my Firebase data:
users 1 -JFhOFSUwhk3Vt2-KmD1 color: "White" make: "BMW" model: "650i" year: "2014 -JGW6vwYtnfoIxeQlwCq color: "Red" make: "Mercedes" model: "AMG" year: "2014" 2 -JFhNnaAq1rr_SHzJcIr color: "Red" make: "Ford" model: "F150 FX4" year: "2014" 3 -JFhYXNpUG3wSMcfB3Uz color: "Blue" make: "Mercedes" model: "AMG" year: "2014" 7