top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is use for HostBinding in Angular?

0 votes
277 views
What is use for HostBinding in Angular?
posted Feb 9, 2018 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

@HostBinding and @HostListener are two decorators in Angular that can be really useful in custom directives. @HostBinding lets you set properties on the element or component that hosts the directive, and @HostListener lets you listen for events on the host element or component.

answer Feb 26, 2018 by Sidharth Malhotra
...