πŸ“Š Angular
Q. Which Angular decorator marks a method to listen to a host event?
  • (A) @HostListener
  • (B) @Input
  • (C) @Output
  • (D) @Inject
πŸ’¬ Discuss
βœ… Correct Answer: (A) @HostListener

Explanation: @HostListener binds a method to a host element event.

Explanation by: Mr. Dubey
@HostListener binds a method to a host element event.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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