Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { LottieModule } from 'ngx-lottie';
import { AppComponent } from './app.component';
export function playerFactory() {
return import('lottie-web');
}
@NgModule({
imports: [
BrowserModule.withServerTransition({ appId: 'ngx-lottie-universal' }),
BrowserTransferStateModule,
HttpClientModule,
LottieModule.forRoot({
player: playerFactory,
useCache: true
})
],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {}