function
Renders a Module to string.
renderModule<T>(module: Type<T>, options: { document?: string | Document; url?: string; extraProviders?: StaticProvider[]; }): Promise<string>
module | Type<T> | |
options | object |
Promise<string>
document
is the document of the page to render, either as an HTML string or as a reference to the document
instance. url
is the URL for the current render request. extraProviders
are the platform level providers for the current render request.
© 2010–2022 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/platform-server/renderModule