配餐项目前端文件
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.

59 lines
1.6 KiB

2 years ago
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { NZ_I18N } from "ng-zorro-antd/i18n";
import { zh_CN } from "ng-zorro-antd/i18n";
import { registerLocaleData } from "@angular/common";
import zh from "@angular/common/locales/zh";
import { FormsModule } from "@angular/forms";
import { HTTP_INTERCEPTORS, HttpClientModule } from "@angular/common/http";
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { AppRoutingModule } from "./app-routing.module";
import { AppComponent } from "./app.component";
import { AppLayoutComponent } from "./components";
import { IconsProviderModule, TableListModule } from "@cdk/public-api";
import { SharedModule } from "@cdk/shared/shared.module";
import {
DashboardComponent,
LoginComponent,
MealSettingComponent,
DataVisComponent,
FoodComponent,
DishComponent,
OrgInfoComponent,
2 years ago
} from "./pages";
import { HTTPInterceptor } from "./services/http.interceptor";
2 years ago
registerLocaleData(zh);
@NgModule({
declarations: [
AppComponent,
AppLayoutComponent,
DashboardComponent,
LoginComponent,
MealSettingComponent,
DataVisComponent,
FoodComponent,
DishComponent,
OrgInfoComponent,
2 years ago
],
imports: [
BrowserModule,
AppRoutingModule,
FormsModule,
HttpClientModule,
BrowserAnimationsModule,
IconsProviderModule,
SharedModule,
TableListModule,
],
providers: [
{ provide: NZ_I18N, useValue: zh_CN },
{ provide: HTTP_INTERCEPTORS, useClass: HTTPInterceptor, multi: true },
],
2 years ago
bootstrap: [AppComponent],
})
export class AppModule {}