angular/integration/animations-async/src/main.ts
Matthieu Riegler 2c2ccf76e2 refactor(animations): Add integration test for animations/async. (#50738)
This integration test aims to cover that we do not break the code splitting of the animation module when we use `provideAnimationsAsync()`.

PR Close #50738
2023-09-29 10:49:40 -07:00

17 lines
536 B
TypeScript

import {bootstrapApplication} from '@angular/platform-browser';
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
import {provideRouter} from '@angular/router';
import {AppComponent} from './app/app.component';
bootstrapApplication(AppComponent, {
providers: [
provideAnimationsAsync(),
provideRouter([
{
path: '',
loadComponent: () => import('./app/open-close.component').then((m) => m.OpenCloseComponent),
},
]),
],
}).catch((err) => console.error(err));