I'm using Parse.com for my backend and following the basic tutorial on the Parse documents. I've set a controller and can't display all the rows from the database table named Events. How would I fix the code to display all rows from the table?
.controller('sllc',['$scope',function($scope){
var Events = Parse.Object.extend("Events");
var query = new Parse.Query(Events);
query.find({
success: function(results) {
console.log(results);
$scope.items = results.Array;
},
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
});
}])