A

Admin • 828.70K Points
Coach

Q. How can you disable a button based on form validation status?

  • (A) [disabled]='form.valid'
  • (B) [disabled]='!form.valid'
  • (C) [disable]='form.valid'
  • (D) [disable]='!form.invalid'
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
You disable the button when the form is invalid using `!form.valid`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.