解决Angular报错 Can't bind to 'ngModel' since it isn't a known property of 'input'

在input中使用[ngModel]报错:Can't bind to 'ngModel' since it isn't a known property of 'input' 解决办法:在module.ts中添加import和providers import { NgModule } from '@angular/core'; import { FormsModule } from '@angul
相关文章
相关标签/搜索