我是靠谱客的博主 追寻早晨,最近开发中收集的这篇文章主要介绍解决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 '@angular/forms';
最后
以上就是追寻早晨为你收集整理的解决Angular报错 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'所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复