且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Angular2模块导出时遇到问题

更新时间:2023-11-22 18:02:22

对于使用providers: [...]的服务,它们将被添加到根注入器(从非延迟加载的模块).

For services use providers: [...], they will be added to the root injector (from non-lazy-loaded modules).

exports: []用于指令,组件和管道以及导出指令,组件和管道的模块.

exports: [] is for directives, components, and pipes and modules that export directives, components, and pipes.