Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

How to make an HTTP call

$
0
0

@polska03 wrote:

I have been following this documentation https://angular.io/docs/js/latest/api/http/Http-class.html#!#stq=http&stp=1 but am unable to make it work.

I have a application server at http://localhost/testcall which returns a JSON such as this:

{ 'name': 'bob'}

I would like to be able to make a POST call to the server and print this name to the console. May someone please show with a simple example how to make an HTTP request and print it to console (console being on the client side when the response comes back)?

Cheers!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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