填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ApplicationModule

为应用配置根注入器,它带有 ApplicationRef 在引导组件时所需的来自 @angular/core 的提供者。

Configures the root injector for an app with providers of @angular/core dependencies that ApplicationRef needs to bootstrap components.

查看"说明"...

      
      class ApplicationModule {
}
    

说明

BrowserModule 重新导出,当你使用 CLI new 命令创建新应用时,它会自动包含在根 AppModule 中。

Re-exported by BrowserModule, which is included automatically in the root AppModule when you create a new app with the CLI new command.

提供商

提供商
      
      APPLICATION_MODULE_PROVIDERS