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

πŸ‘οΈ
96
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate