2026-09-05 16:21:07 +02:00
|
|
|
import { provideZoneChangeDetection } from '@angular/core';
|
2026-03-31 12:06:23 +02:00
|
|
|
import { bootstrapApplication } from '@angular/platform-browser';
|
|
|
|
|
import { provideRouter, withHashLocation } from '@angular/router';
|
2026-07-11 16:10:20 +02:00
|
|
|
import { provideHttpClient, withXhr } from '@angular/common/http';
|
2026-03-31 12:06:23 +02:00
|
|
|
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
|
2026-09-05 16:21:07 +02:00
|
|
|
import { MATERIAL_ANIMATIONS } from '@angular/material/core';
|
2017-09-26 18:13:00 +02:00
|
|
|
|
2026-03-31 12:06:23 +02:00
|
|
|
import { AppComponent } from './app/app.component';
|
|
|
|
|
import { routes } from './app/app.routes';
|
2017-09-26 18:13:00 +02:00
|
|
|
|
2026-03-31 12:06:23 +02:00
|
|
|
bootstrapApplication(AppComponent, {
|
|
|
|
|
providers: [
|
2026-09-05 16:21:07 +02:00
|
|
|
provideZoneChangeDetection(),
|
|
|
|
|
provideRouter(routes, withHashLocation()),
|
|
|
|
|
// No animations: Angular Material's overlay animations (select panels, dialogs, menus)
|
|
|
|
|
// open a window during which a click can land on the backdrop instead of the option, so a
|
|
|
|
|
// selection is silently lost.
|
|
|
|
|
{
|
|
|
|
|
provide: MATERIAL_ANIMATIONS,
|
|
|
|
|
useValue: { animationsDisabled: true },
|
|
|
|
|
},
|
2026-07-11 16:10:20 +02:00
|
|
|
provideHttpClient(withXhr()),
|
2026-03-31 12:06:23 +02:00
|
|
|
{
|
|
|
|
|
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
|
|
|
|
|
useValue: { appearance: 'outline', subscriptSizing: 'dynamic' },
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
}).catch((err) => console.error(err));
|