W3cubDocs

/Angular 11

renderModuleFactory

function

Renders a NgModuleFactory to string.

See more...

renderModuleFactory<T>(moduleFactory: NgModuleFactory<T>, options: { document?: string; url?: string; extraProviders?: StaticProvider[]; }): Promise<string>

Parameters
moduleFactory NgModuleFactory
options object
Returns

Promise<string>

Description

document is the full document HTML of the page to render, as a string. url is the URL for the current render request. extraProviders are the platform level providers for the current render request.

© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/platform-server/renderModuleFactory