I have this situation ...
In View
<h2><p> {{namePlayer}} </p></h2>
and angular ...
$scope. namePlayer = {};
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.namePlayer = object.get("namePlayer");
}
},
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
})
This way $scope.namePlayer is showing '{}' in view
how to list correct result of Parse.Query in View?
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.