И
А не на уровне компонента
Size: a a a
И
AB
ДЛ
Эи
const control = this.personsForm.controls;можно заменить на
if (this.personsForm.invalid) {
/** Если форма не валидна, то помечаем все контролы как touched*/
Object.keys(control)
.forEach(controlName => control[controlName].markAsTouched());
/** Прерываем выполнение метода*/
return;
}
this.personsForm.markAllAsTouched();
ДЛ
const control = this.personsForm.controls;можно заменить на
if (this.personsForm.invalid) {
/** Если форма не валидна, то помечаем все контролы как touched*/
Object.keys(control)
.forEach(controlName => control[controlName].markAsTouched());
/** Прерываем выполнение метода*/
return;
}
this.personsForm.markAllAsTouched();
VK
Вキ
Вキ
VK
VK
VK
SG
AK
D
И
И
D
D
ID