A

Admin • 833.24K Points
Coach

Q. How do you bind a method to a button click in Angular template?

  • (A) (click)="methodName()"
  • (B) [click]="methodName()"
  • (C) (click.bind)="methodName"
  • (D) (method)="click()"
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

`(click)` is the event binding syntax in Angular templates.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.