在input中使用[ngModel]报错:Can't bind to 'ngModel' since it isn't a known property of 'input'

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

解决办法:在module.ts中添加importproviders

import { NgModule } from '@angular/core';

import { FormsModule } from '@angular/forms';

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

相关文章:

  • 2021-04-25
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-06-05
猜你喜欢
  • 2021-04-16
  • 2022-12-23
  • 2021-07-14
  • 2021-12-04
  • 2021-05-24
  • 2021-09-06
  • 2021-06-15
相关资源
相似解决方案