πŸ“Š Angular
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

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