Making Http Requests
Click a country to display that country's capitol. Observables in flight will be cancelled prior to loading new data.
USA |
Denmark |
Germany |
Argentina |
The capitol is {{capitol}}
List of friends using Observables
{{friend}}
List of friends loaded using Promises
{{friend}}
List of friends and customer loaded successfully in parallel
Friends:
{{friend}}
Customer:
{{combined.customer.name}}
Loaded a contract after first loading a customer
Customer: {{customer?.name}}
Product: {{contract?.product}}
There was an error loading the list of friends (Intentional error testing)
Making a post request
Posted the following values:
{{postResponse.firstName}}
{{postResponse.lastName}}