angular.io icon indicating copy to clipboard operation
angular.io copied to clipboard

How does that work "component can declare that it is the "host" component."

Open zoechi opened this issue 10 years ago • 0 comments

https://angular.io/docs/ts/latest/guide/hierarchical-dependency-injection.html

There's a third possibility. An intermediate component can declare that it is the "host" component. The hunt for providers will climb no higher than the injector for this host component. We'll reserve discussion of this option for another day.

I have never seen this mentioned anywhere before. What does it mean? How can a component declare itself a host component?

zoechi avatar Nov 21 '16 07:11 zoechi