Angular 模型驱动的形式-原始总是正确的

Angular 模型驱动的形式-原始总是正确的,angular,angular2-forms,angular2-formbuilder,Angular,Angular2 Forms,Angular2 Formbuilder,如何通过编程将pristine设置为false this.myForm.get('categories').set…设置什么?没有原始的东西 出于某种原因,当我像这样设置类别时: this.myForm.get('categories').setValue( this.multiselectFindCategory.selectedCategories ); this.myForm.controls.categories.pristine

如何通过编程将pristine设置为false

this.myForm.get('categories').set
…设置什么?没有原始的东西

出于某种原因,当我像这样设置类别时:

        this.myForm.get('categories').setValue(
            this.multiselectFindCategory.selectedCategories
        );
this.myForm.controls.categories.pristine仍然等于true

this.myForm.get('categories').markAsDirty();