如何在angular中检查ngmodel或表单是脏的或有输入使用表单域,但不使用formgroup。我想检查是否有5个输入字段有值或脏,我想要像消息一样显示,但我们如何检查,例如,来自DealFields或ngModel dealDispositionFormFields的5个字段是否有值或有输入?/deal-idle-disposition.component.html',
styl
我正在使用角7应用程序,我正在编写一个通用的动态表单创建者。我正在使用reactive和ng-template and <ng-container *ngTemplateOutlet>递归地显示表单element.The代码,可以看到。/node_modules/@angular/forms/fesm5/forms.js.FormGroupDirective.addCo