@angular/core

HostBinding

decorator

Decorator that marks a DOM property or an element class, style or attribute as a host-binding property and supplies configuration metadata. Angular automatically checks host bindings during change detection, and if a binding changes it updates the host element of the directive.

  
    @HostBinding ({})
  
  
Jump to details