28 lines
829 B
TypeScript
28 lines
829 B
TypeScript
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
|
|
import { provideRouter, withHashLocation } from '@angular/router';
|
|
import { provideHttpClient } from '@angular/common/http';
|
|
import { provideHighcharts } from 'highcharts-angular';
|
|
|
|
import { routes } from './app.routes';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideZoneChangeDetection({ eventCoalescing: true }),
|
|
provideRouter(routes, withHashLocation()),
|
|
provideHttpClient(),
|
|
provideHighcharts({
|
|
instance: () => import('highcharts'),
|
|
options: {
|
|
legend: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
modules: () => {
|
|
return [
|
|
import('highcharts/esm/modules/accessibility'),
|
|
import('highcharts/esm/modules/exporting'),
|
|
];
|
|
},
|
|
}),
|
|
]
|
|
};
|