@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