BrowserModule
匯出所有 Angular 應用都需要的基礎設施。預設包含在用 CLI 的 new
命令建立的所有 Angular 應用中。 它二次匯出了 CommonModule
和 ApplicationModule
,以便它們的匯出物和提供者能用於所有應用中。
Exports required infrastructure for all Angular apps. Included by default in all Angular apps created with the CLI new
command. Re-exports CommonModule
and ApplicationModule
, making their exports and providers available to all apps.
class BrowserModule {
static withServerTransition(params: { appId: string; }): ModuleWithProviders<BrowserModule>
}
靜態方法
配置基於瀏覽器的應用,使其可以從當前頁面上的伺服器端渲染(SSR)應用過渡而來。 指定的引數必須包含一個應用 id,在客戶端應用和伺服器端應用之間它必須一致。 Configures a browser-based app to transition from a server-rendered app, if one is present on the page. | |||
引數
返回值重新配置過的
|
提供商
提供商 |
---|
|