Host Directive

Automatically applying other directives to a component to reuse behavior.

What is Host Directive?

A host directive lets a component or directive include other directives automatically, so behavior can be reused without inheritance.

@Component({
  selector: 'app-menu-item',
  hostDirectives: [Highlight],
  template: `<ng-content />`,
})

Level: Master · More Angular terms at this level

Updated