📅  最后修改于: 2022-03-11 14:56:42.104000             🧑  作者: Mango
Add to app.module.ts:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; <--
import { AppComponent } from './app.component';
@NgModule({
imports: [
BrowserModule,
FormsModule, <--
ReactiveFormsModule <--
],
declarations: [
AppComponent
],
bootstrap: [AppComponent]
})
export class AppModule { }