In Angular 9, HostListener is a function decorator. Its job is to accept an event name as an argument and call the associated function when the same event gets fired by the host element.

Whereas, HostBinding in Angular 9 is used for binding the input properties in the host element towards the directive. With the help of HostBinding decorator, a directive can internally link property to the input property of the host element. When the internal property is changed or updated, the input property of the host element will automatically change.

BY Best Interview Question ON 25 May 2020