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://localhost:5000/ping') , 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.

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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -