mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
17 lines
536 B
TypeScript
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));
|