Adding a Browser Animations module

You need to integrate the Browser Animations module for the material components to work correctly. Follow these steps to do so:

  1. Switch to the src/app/app.module.ts file.
  2. Import BrowserAnimationsModule:
      import { BrowserAnimationsModule } from '@angular/platform-browser
/animations';


@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule,
AppRoutingModule],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}

The next step is configuring the default theme settings.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.82.79