Q. What does the Angular decorator @HostBinding do?

  • (A) Binds a property to the host element of the directive/component
  • (B) Binds an event to the host element
  • (C) Defines input property
  • (D) Defines output property
πŸ’¬ Discuss
βœ… Correct Answer: (A) Binds a property to the host element of the directive/component
Explanation: @HostBinding binds class, style or attribute values on the host element.
Explanation by: Mr. Dubey
@HostBinding binds class, style or attribute values on the host element.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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