6 questions
1
vote
1
answer
656
views
Angular async validators making multiple http calls
I have a custom async validator in Angular app that validates the uniqueness of a value. The validator makes HTTP calls to the backend API. I am trying to control the number of API calls by adding ...
0
votes
1
answer
189
views
Angular async validators get triggered on formGroup.addControl/removeControl
We have a pretty nested reactive Angular from with all of the FormControls inside a FormGroup which is inside a FormArray. A few of the FormControls have async validators to check for the uniqueness ...
1
vote
0
answers
169
views
With Angular 16, why errors from async validators aren't displayed?
I have a weird behavior with async validators from Angular.
Here's the context (this is an example, not the best use case here but that's not the issue ^^) :
I have a form with a ngModelGroup inside.
...
1
vote
1
answer
27
views
asynchronous validators reactive forms
payerGeneralInformationValidators = this.formBuilder.group({
'payerName': ['', [Validators.required, Validators.pattern('[a-zA-Z 0-9`~!@#$%^&,.\'\"*()_+-]*$'), Validators.maxLength(...
1
vote
1
answer
1k
views
Custom Async Validator using an observable from ngrx store selector does not return 'null' unless I put take(1) operator
Form Group
colleges$ = this.store.select(getColleges);
this.personalFg = this.fb.group({
college: ['',[Validators.required],[this.customValidatorWithinSelection(this.colleges$)]],
course: ...
0
votes
1
answer
785
views
Async validation message not displaying in ngx-formly
When trying this example from the ngx-formly library, the message that comes from the async validation is not displaying under the field as exprected
https://formly.dev/docs/examples/validation/unique-...