W3cubDocs

/Angular

renderModule

function

Renders a Module to string.

See more...

renderModule<T>(module: Type<T>, options: { document?: string | Document; url?: string; extraProviders?: StaticProvider[]; }): Promise<string>

Parameters
module Type<T>
options object
Returns

Promise<string>

Description

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