Exposing Inputs and Outputs
Surface host directive inputs and outputs.
Exposing Composed APIs
When you compose a directive via hostDirectives, its inputs and outputs are hidden by default. The composition API lets you expose selected inputs and outputs to the host's public API.
The Object Form
Instead of listing just the class, use an object with directive, inputs, and outputs arrays.
hostDirectives: [{
directive: TooltipDirective,
inputs: ['tooltipText'],
outputs: ['tooltipShown']
}]All lessons in this course
- The hostDirectives Property
- Exposing Inputs and Outputs
- Building Reusable Behaviors
- Composition vs Inheritance