You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hai-oil-web/src/app/app.config.ts

29 lines
1.0 KiB

import { ApplicationConfig, importProvidersFrom } from '@angular/core';
11 months ago
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import { provideClientHydration } from '@angular/platform-browser';
import { zh_CN, provideNzI18n } from 'ng-zorro-antd/i18n';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
8 months ago
import {BrowserAnimationsModule, provideAnimations} from '@angular/platform-browser/animations';
import {InitGuardService} from "./utils/initGuard.service";
7 months ago
import {AiRouteReuseStrategy} from "./utils/routeReuseStrategy";
registerLocaleData(zh);
11 months ago
export const appConfig: ApplicationConfig = {
8 months ago
providers: [
provideRouter(routes),
provideClientHydration(),
provideNzI18n(zh_CN),
importProvidersFrom(FormsModule),
importProvidersFrom(HttpClientModule),
provideAnimations(),
BrowserAnimationsModule,
InitGuardService, // 校验登录
]
11 months ago
};