Angular HttpClient vs HttpClientModule

Why you use BrowserModule, CommonModule, FormsModule, RouterModule, and HttpClientModule?

Why you use BrowserModule, CommonModule, FormsModule, RouterModule, and HttpClientModule?

BrowserModule – The browser module is imported from @angular/platform-browser and it is used when you want to run your application in a browser.

CommonModule – The common module is imported from @angular/common and it is used when you want to use directives - NgIf, NgFor and so on.

FormsModule – The forms module is imported from @angular/forms and it is used when you build template driven forms.

RouterModule – The router module is imported from @angular/router and is used for routing RouterLink, forRoot, and forChild.

HttpClientModule –The HttpClientModule is imported from @angular/common/http and it used to initiate HTTP request and responses in angular apps. The HttpClient is more modern and easy to use the alternative of HTTP.
ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

Why you use BrowserModule, CommonModule, FormsModule, RouterModule, and HttpClientModule? Why you use BrowserModule, CommonModule, FormsModule, RouterModule, and HttpClientModule? Reviewed by Anil Singh on 3:38 AM Rating: (5)
www.code-sample.com/. Powered by Blogger.
^