Having two inputs is the scenario here:
- The first input undergoes custom validator application
- The second input has a dynamic and editable value utilized in the custom validator
If the custom validator is applied on the first input, then focus shifts to the second one for a value change - triggering re-validation for the first input is what's desired...
Currently, the first input only re-validates upon changing the value... Any ideas for improvement?
Upon focusing on the first input, its reference can be accessed:
<input
name="mEnd"
class="form-control"
[(ngModel)]="endDate"
...
#endDateInput="ngModel"
(focus)="clog(endDateInput)"
>
Is it possible to trigger re-validation using the formControl reference methods of the input?