Skip to main content

Posts

Showing posts with the label Angular 5 REST API Calls

Angular 5 API calls with HttpClient Service | Get, Post, Put and Delete

Angular 4.3 introduced a new service called HttpClient . The HttpClient Service was the replacement for the Http service from Angular 2.   The HttpClient works mostly the same as the old HTTP service.  The HttpClient service is handling both single and concurrent data.  Http service still works but it will be removed in a future release.                      Stayed Informed - HttpClient vs HttpClientModule Angular The types of HttpClient service - 1.       HttpClient.get 2.       HttpClient.post 3.       HttpClient.put 4.       HttpClient.delete In the below example, I will share how to create Angular 5 REST API using Angular HttpClient services and other -  Installing HttpClientModule - app.module.ts import { BrowserModule } from '@angular/platform-browser' ; import { NgModule } fro...