angular-validator Questions

7

Solved

I am trying to add and remove validators in a formGroup controls based on certain condition. When I am updating the validators through formGroup.updateValueAndValidity() for whole form its not upd...

1

Solved

So I have a form where a control is required only if another control has a value, for this I created the following structure profileGroup = this.fb.group({ username: [''], address: [ '', [ (con...

2

Solved

How can I validate my numeric input field to only accept integer and not any kind of decimal numbers (comma / dot)? Code Component import { FormGroup, FormBuilder, Validators } from '@angular/forms...
Alyworth asked 18/9, 2020 at 9:46

3

Solved

I am using angular 7 with material design components I have requirement to add requireMatch validation to mat-autocomplete. I have created custom validation with param but param value does change...

2

Solved

for example I have an input , and I add muti validate conditions like: required , mail and pattern , so any one failed will lead the controls.status gave me "INVALID" , what shall I do if I want to...
Untread asked 26/6, 2019 at 9:44
1

© 2022 - 2024 — McMap. All rights reserved.