I have a strang problem, perhaps its not angular specific. I get a response
from an $http GET call and want assign it to a $scope variable. Like this:
$http({
url: 'api/getBet.php',
method: "GET",
params: {date: dataDate}
}).then(function(response) {
console.log(response.data);
$scope.bets = response.data;
});
My response.data looks like this `[Array[2], Array[2]]`
But if I assign it to e.g. `$scope.bets`
my `console.log(response.data)` looks like:
<https://lh3.googleusercontent.com/-A8F3nvdb2LY/VbZRM-a9a-I/AAAAAAAAAAg/DND6bMfcrOA/s1600/mitscope.jpg>
but if comment the `$scope` assignment out, my `console.log(response.data)`
looks like:
<https://lh3.googleusercontent.com/-5ftgWoTBI6w/VbZRRB72n0I/AAAAAAAAAAo/EFXZDuY7ePM/s1600/ohnescope.jpg>
Any idea why my response.data array gets cropped? It's not just in
'console.log()', if I inspect the $scope variable, its cropped too.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.