The raw results returned from Parse.com are shown in the console as [child, child]
.
I imagine this means that there are three levels to this object? So in order to access in the first ng-repeat do I need to do a foreach in the controller before pushing to an array and then use that in $scope... seems a long way around to get what i want.
Is it possible to use the raw results from Parse.com in the scope. I would like to do this:
var query = new Parse.Query("Programme");
query.equalTo("userId", userId);
query.find()
.then(function(result){
$scope.programmes = result;
console.log($scope.programmes);
});
However this gives me the child
elements - do I have to foreach, or is there some angular trickery?
$scope.programmes = result;
? You can use it like this too.