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

renderModulelink

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

Renders a Module to string.

\n\n

See more...

\n
\n \n \n \n\n
\n \n\n renderModule<T>(module: Type<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 module\n Type\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

If compiling with the ViewEngine renderer, do not use this in a production server environment.\nUse pre-compiled NgModuleFactory with renderModuleFactory instead. If\ncompiling with the Ivy renderer, this method is the recommended rendering method for\nplatform-server.

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