Angular - Reactive Forms
Which of the following is the correct syntax to check if a form control named
username is valid in Angular template-driven forms?username is valid in Angular template-driven forms?username.valid uses the control variable directly, which is correct. form.controls.username.valid and form.get('username').valid are reactive form syntax. usernameControl.isValid uses a non-existent property.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions