1.

Why You Use Browsermodule, Commonmodule, Formsmodule, Routermodule, And Httpclientmodule?

Answer»

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.

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.



Discussion

No Comment Found