Eu tenho a seguinte situação:
Na view ...

<h2><p> {{nomeCraque}} </p></h2>

E 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);
            }
      })              

Desta forma $scope.nomeCraque imprime '{}' na view, como faço para imprimir 
na view o resultado correto que a Query está retornando ?

-- 
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.

Reply via email to