에 선언 후에는 setValue
방법, 또는 patchValue 방법과 FormControl 또는 FormGroup를 업데이트 할 수 있습니다업데이트 검사기 FormControl
this.input = new FormControl('', Validators.required)
this.form = this.formBuilder.group({
input = this.input
})
this.input.update('', Validators.maxlength(20))
내가 제안한대로 setValidators를 사용했습니다. 감사합니다. –
여러분, 반갑습니다. 기꺼이 도와 드리겠습니다! :) – Alex