Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Java as backend? Need Explanation

$
0
0

Hi,

I have used $http to make the rest call. Since its a REST endpoint, it doesnt matter if the backend is implemented in java or .net or ruby etc.

eg. call to a REST service.

    var url = 'your_rest_endpoint_url';

    return $http.get(url).
      success(function(data, status, headers, config) {
        return data; //response from your REST service
      }).
      error(function(data, status, headers, config) {
        console.log("ERROR  : " + JSON.stringify(data));
      });

See : https://docs.angularjs.org/api/ng/service/$http for more details.

Hope this helps.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>