πŸ“Š Angular
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()"
πŸ’¬ Discuss
βœ… Correct Answer: (A) (click)="methodName()"

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

Explanation by: Mr. Dubey
`(click)` is the event binding syntax in Angular templates.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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