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.
提供商
| 提供商 |
|---|
|