Angular - Reactive Forms
Identify the error in this code:
const ageControl = new FormControl(); ageControl.setValue;
const ageControl = new FormControl(); ageControl.setValue;
ageControl.setValue without parentheses, so the method is referenced but not called.setValue is not called, no value is set and no error occurs, but the intended update does not happen.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions