码迷,mamicode.com
首页 > 其他好文 > 详细

angular injector

时间:2018-11-18 13:34:43      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:ble   cto   添加   The   enc   tree   module   get   injector   

 

If the dependency is added to a module, it gets registered on the root injector.

如果依赖添加到module上,那么,这些服务会注册到root injector。

angular每个组件都有对应的injector,然后组成了一个injector tree

详细介绍:https://blog.angularindepth.com/angular-dependency-injection-and-tree-shakeable-tokens-4588a8f70d5d

angular injector

标签:ble   cto   添加   The   enc   tree   module   get   injector   

原文地址:https://www.cnblogs.com/aoeuy/p/9977644.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!