According to the angular documentation:
The directive composition API allows for the application of directives to a component's host element directly from within the component's TypeScript class.
What benefits does applying the directive from within the component class offer compared to applying it in the template? Is it primarily for composing multiple directives together?