forRoot()

可以快速上手的开发文档

#forRoot()

Angular6使用forRoot() 注册单一实例服务问题

假如我们有一个shareModule来存放公用的组件(Component)、指令(Directive)、管道(Pipe)、服务(Servic..