I have the following situation in View
:
{{nomeCraque}}
and no Angular
:
$scope.nomeCraque = {};
var EscalacaoObject = Parse.Object.extend("Escalacao");
var query = new Parse.Query(EscalacaoObject);
query.find({
success: function(results) {
// Successfully retrieved the object.
for (var i = 0; i < results.length; i++) {
var object = results[i];
$scope.nomeCraque = object.get("nomeCraque");
}
},
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
})
In this way $scope.nomeCraque
prints {}
on View
, how do I print on View
the correct result that Query
is returning?