开发者社区> 问答> 正文

Angular5表单校验的问题?报错

运行时报错:

ERROR TypeError: Cannot read property 'invalid' of undefined
    at Object.eval [as updateDirectives] (EditMemberComponent.html:9)

去掉flag就好了,请问该如何解决?

展开
收起
爱吃鱼的程序员 2020-06-07 17:20:42 466 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>该用响应式表单或者动态表单就好了,模版表单只适合一些简单的应用场景</p>
    
    2020-06-07 17:21:01
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Angular从零到一 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载