Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • yarn add @angular/animations

Add

...

the

...

import

...

to

...

app.module.ts:

  • Code Block
    import {BrowserAnimationsModule} from '@angular/platform-browser/animations';

    and:

  • add BrowserAnimationsModele BrowserAnimationsModule to the array of imports in app.module.ts.

...

Some components of material design rely on HammerJS for gestures. So install hammerjs:

  • yarn add hammerjs 

    After install add the import to src/main.ts:

    Code Block
    import 'hammerjs'

...