起初,当我输入ng serve
, 2 目录@angular/material
并被@angular/cdk
删除时,我纠正了问题,但现在我有了另一个。
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {CdkTableModule} from '@angular/cdk';
import { AppComponent } from './app.component';
import { FooterComponent } from './footer/footer.component';
import { HeaderComponent } from './header/header.component';
import { BodyComponent } from './body/body.component';
@NgModule({
declarations: [
CdkTableModule,
AppComponent,
FooterComponent,
HeaderComponent,
BodyComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }