0
I’m building an angular application, where I give http.get in a url, the status comes 200, but the date comes empty. In the api where I built, I return the json array, and in the angular webservice, I apneas give http.get and the date returns me empty.
Follow my service code:
myApp.service('cinemas',function($http){
return ({
getList:getCinemasList
});
function getCinemasList(){
return $http.get("http://api.localhost:8080/movie/204").then(function(response){
console.log(response.data);
});
}
});
If you call the link in the browser returns a certain json?
– Geferson
yes, in the browser returns.
– Michel Henriq
Press F12, go to the network tab, take your Request and check the content of Sponse, if the server is sending you the return.
– Renan Degrandi