do poprawnego działania modułów wymagana jest instalacja następujących modułów.
npm install --save @angular/animations@latest
and at the top of app.module.ts
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; and then in the @NgModule part of app.module.ts
@NgModule({ declarations: [ ... ], imports: [ ... BrowserAnimationsModule, \ <-include this ], providers: [... ], bootstrap: [...] })