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.
53 lines
1.4 KiB
53 lines
1.4 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,
|
||
|
} from "./pages";
|
||
|
|
||
|
registerLocaleData(zh);
|
||
|
|
||
|
@NgModule({
|
||
|
declarations: [
|
||
|
AppComponent,
|
||
|
AppLayoutComponent,
|
||
|
DashboardComponent,
|
||
|
LoginComponent,
|
||
|
MealSettingComponent,
|
||
|
DataVisComponent,
|
||
|
FoodComponent,
|
||
|
DishComponent,
|
||
|
],
|
||
|
imports: [
|
||
|
BrowserModule,
|
||
|
AppRoutingModule,
|
||
|
FormsModule,
|
||
|
HttpClientModule,
|
||
|
BrowserAnimationsModule,
|
||
|
IconsProviderModule,
|
||
|
SharedModule,
|
||
|
TableListModule,
|
||
|
],
|
||
|
providers: [{ provide: NZ_I18N, useValue: zh_CN }],
|
||
|
bootstrap: [AppComponent],
|
||
|
})
|
||
|
export class AppModule {}
|