mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
81e7f5be03
Let's have the same test app for async and eagerly loaded animations. PR Close #50738
18 lines
520 B
TypeScript
18 lines
520 B
TypeScript
import {bootstrapApplication} from '@angular/platform-browser';
|
|
import {provideAnimations} from '@angular/platform-browser/animations';
|
|
import {provideRouter} from '@angular/router';
|
|
|
|
import {AppComponent} from './app/app.component';
|
|
|
|
bootstrapApplication(AppComponent, {
|
|
providers: [
|
|
provideAnimations(),
|
|
provideRouter([
|
|
{
|
|
path: '',
|
|
loadComponent: () => import('./app/open-close.component').then((m) => m.OpenCloseComponent),
|
|
},
|
|
]),
|
|
],
|
|
}).catch((err) => console.error(err));
|