I have a request like: $http.jsonp(
"http://localhost:28017/...?format=jsonp&callback=JSON_CALLBACK";). Which I 
understand returns a promise so I have then(function(data) { ... to be 
called when the promise is resolved. The problem is that when I am call 
this I get an error 'Uncaught SyntaxError: Unexpected token :' that I 
notice in the debugger (Chrome) I notice that when I click on the details 
of this link I don't get JavaScript code but I get a JSON object that seems 
like the data I expect. So I am not sure what is the syntax error? Ideas?

Thank you.

-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to