Oh, that makes sense.
I tried running the plunkr code against actual server calls and now receive
an empty array. Going to play with this some more.
Out of curiousity, how can I use $http to simplify this because I receive
the same types of errors when I use the following:
.factory(DepositCount, ['$http', function ($http) {
return $http.get('./count.json').success(function(response) {
return response.data;
}
}]);
I see examples on the AngularJS site showing the use of a success()
callback as well as then().
Thanks
On Friday, January 3, 2014 5:13:00 AM UTC-6, Sander Elias wrote:
>
> Hi,
>
> There was noting bad in your data, but if you feed plotr incomplete data,
> it crashes. Had to put in a check for that.
>
> Regards
> Sander
>
--
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/groups/opt_out.