BrowserModule
ngmodule
Exports required infrastructure for all Angular apps. Included by defaults 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: {...}): ModuleWithProviders<BrowserModule> }
Static methods
withServerTransition() | ||
---|---|---|
Configures a browser-based app to transition from a server-rendered app, if one is present on the page. | ||
|
params | An object containing an identifier for the app to transition. The ID must match between the client and server versions of the app. |
Returns
ModuleWithProviders<BrowserModule>
: The reconfigured BrowserModule
to import into the app's root AppModule
.
Providers
Provider |
---|
BROWSER_MODULE_PROVIDERS |
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/platform-browser/BrowserModule