0
0
Angularframework~10 mins

BrowserAnimationsModule setup in Angular - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import BrowserAnimationsModule in the Angular app module.

Angular
import { [1] } from '@angular/platform-browser/animations';
Drag options to blanks, or click blank then click option'
AHttpClientModule
BBrowserModule
CBrowserAnimationsModule
DFormsModule
Attempts:
3 left
💡 Hint
Common Mistakes
Importing BrowserModule instead of BrowserAnimationsModule
Forgetting to import from '@angular/platform-browser/animations'
Using HttpClientModule or FormsModule by mistake
2fill in blank
medium

Complete the code to add BrowserAnimationsModule to the imports array in @NgModule.

Angular
@NgModule({
  imports: [[1]],
})
Drag options to blanks, or click blank then click option'
ABrowserModule
BCommonModule
CHttpClientModule
DBrowserAnimationsModule
Attempts:
3 left
💡 Hint
Common Mistakes
Adding BrowserModule instead of BrowserAnimationsModule
Forgetting to add the module to imports array
Adding unrelated modules like HttpClientModule
3fill in blank
hard

Fix the error in the import statement for BrowserAnimationsModule.

Angular
import { BrowserAnimationsModule } from '[1]';
Drag options to blanks, or click blank then click option'
A@angular/common
B@angular/platform-browser/animations
C@angular/core
D@angular/forms
Attempts:
3 left
💡 Hint
Common Mistakes
Importing from @angular/core or @angular/common
Using @angular/forms or other unrelated packages
4fill in blank
hard

Fill both blanks to complete the Angular module setup with BrowserAnimationsModule and AppComponent.

Angular
@NgModule({
  imports: [[1]],
  declarations: [[2]],
  bootstrap: [AppComponent]
})
Drag options to blanks, or click blank then click option'
ABrowserAnimationsModule
BHttpClientModule
CAppComponent
DFormsModule
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up imports and declarations
Forgetting to declare AppComponent
Adding unrelated modules or components
5fill in blank
hard

Fill all three blanks to complete the Angular module with BrowserAnimationsModule, AppComponent, and HttpClientModule.

Angular
@NgModule({
  imports: [[1], [2]],
  declarations: [[3]],
  bootstrap: [AppComponent]
})
Drag options to blanks, or click blank then click option'
ABrowserAnimationsModule
BHttpClientModule
CAppComponent
DFormsModule
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to import HttpClientModule
Not declaring AppComponent
Adding FormsModule instead of HttpClientModule