作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
大家好,我有一个 Formarray,其中有一组角色。在编辑期间,它会动态删除并添加该表单数组中的角色,直到这里一切正常,但是当我提交表单时,它会出现错误并且页面会刷新。
错误:类型错误:无法读取 null 的属性“updateOn”
最佳答案
这对我有用
确保您已输入 <button type="button" ></button>
而不是<input type="submit" />
<button [ngClass]="(this.editMemberForm.invalid?'a1':'')" type="button" class="btn btn-success" (click)="saveData()">Save</button>
关于angular6 - 为什么 Angular ReactiveForms FormArray 会抛出错误 "TypeError: Cannot read property ' updateOn' of null”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56981582/
我是一名优秀的程序员,十分优秀!