πŸ“Š Angular
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'
πŸ’¬ Discuss
βœ… Correct Answer: (B) [disabled]='!form.valid'

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
46
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate