{ "id": "api/platform-server/renderModuleFactory", "title": "renderModuleFactory", "contents": "\n\n
\n
\n
\n \n API > @angular/platform-server\n
\n \n
\n \n
\n

renderModuleFactorylink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

Renders a NgModuleFactory to string.

\n\n

See more...

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

Promise<string>

\n\n \n\n\n \n\n \n
\n\n\n \n\n \n\n
\n

Descriptionlink

\n

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

\n\n \n
\n\n\n\n \n\n\n
\n
\n\n\n" }