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