http - How to call external rest service from angularjs? -
trying call external rest service angular using $http service.
thing stuck on $http.get method, because everytime call
rest service error status = 0 , no information in data parameter
of error callback.
so far i've tried calling local service runnig on port 5000 : $http.get('http://
, supposed return json object property , value. approach calling http://api.flickr.com/services/rest/?method=flickr.test.echo&name=test in hope of getting answer. both of them same error: mentioned earlier.localhost
:5000/ping')
the call made angular controller has injected http service.
thanks.
have tried:
$http({method: 'get', url: 'someurl'}). success(function(data, status, headers, config) { //set view model or something. }). error(function(data, status, headers, config) { });
Comments
Post a Comment