API integration in angular with http

preview_player
Показать описание
In these example, we will learn how to integrate api in angular with example,
we will see how to integrate http get, and post method with actual api.
Api integration is important during development. because we will need to integrate backend services. this video will help you to integrate backend services in angular. we have few http methods like get post put patch delete.
with these get and post method example in angular, you can intgegrate any type of in backend service in your angular code

Most front-end applications need to communicate with a server over the HTTP protocol, to download or upload data and access other back-end services. Angular provides a client HTTP API for Angular applications, the HttpClient service class in @angular/common/http.

How to Use HttpClient?
It can be injected in other services and components. It exports methods for making HTTP Ajax requests such as get(), post(), put(), and delete() and return http responses with various types such as json, text and blob.

HttpClient provides many benefits such as testability, typed request and response objects, request and response interception, Observable APIs, and streamlined error handling.

The methods of HttpClient are based on RxJS observables, so we need to be aware of these points when using them:

You need to subscribe to the observable returned from the method to actually send the http request to the server,
If you subscribe multiple times to the returned observable, multiple HTTP requests will be sent to the server,
The returned observable is a single-value stream which means it will emit only one value and complete.

check out video on calling api's in sequence:
Рекомендации по теме
Комментарии
Автор

You show Many things in a 10 minutes video....Thank you so much..

blenderd-easytofollowtuto
Автор

The contents of this video are what I was looking for. Thank you very much for the information. It is very simple and concrete.

DavidVillalobosCambronero
Автор

How can i set api request in sequence? so that those api will run one after another sequencely
pls answer back asap

petlaughtv
Автор

How would you connect it to send on submit of a button

TheKyleGray
Автор

I did the same thing as you did but its not working...please help

Tanushree
Автор

how can I make it so that I can get all the posts? like posts/1, posts/2 and so on. in my api I can access the posts like that, but I can't do it by just putting /posts . Thanks, good video!

AnniWB
Автор

Bro in html file getjsonvalue is not working

tulasipinniboina
Автор

I did same as yours but it's not working i think api isn't working can you help me out in this ? as shown in video at 3:30 i can't see data after inspecting web app

yashkhanna
Автор

The advertisements were like 10 minutes long every other 10 minutes. I could bear it any further.

codedesign
welcome to shbcf.ru