A

Admin • 828.70K Points
Coach

Q. Which of the following is a correct way to bind a click event to a method named 'onClick' in Angular?

  • (A) (click)='onClick()'
  • (B) [click]='onClick()'
  • (C) *click='onClick()'
  • (D) {{click}}='onClick()'
  • Correct Answer - Option(A)
  • Views: 12
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Parentheses () are used for event binding.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.