82.6k views
3 votes
What are BrowserModule and FormsModule used for?

Option 1:
BrowserModule handles HTTP requests, and FormsModule manages form elements.

Option 2:
BrowserModule provides browser-specific features, and FormsModule is for handling forms.

Option 3:
FormsModule manages authentication, and BrowserModule handles routing.

Option 4:
BrowserModule is for handling animations, and FormsModule manages state.

1 Answer

3 votes

Final answer:

BrowserModule provides browser-specific features and FormsModule is for handling forms.

Step-by-step explanation:

The correct answer is Option 2: BrowserModule provides browser-specific features, and FormsModule is for handling forms.

BrowserModule is a module in Angular that provides browser-specific services such as the ability to use the DOM, HTTP requests, and routing. It is generally imported once in the root module of an Angular application.

FormsModule is another module in Angular that facilitates working with forms. It provides services like data binding and validation, making it easier to handle form elements like input fields, checkboxes, and dropdowns.

User Top Sekret
by
8.5k points