renderModule

function

npm Package @angular/platform-server
Module import { renderModule } from '@angular/platform-server';
Source platform-server/src/utils.ts

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

Description

Renders a Module to string.

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.

Do not use this in a production server environment. Use pre-compiled NgModuleFactory with renderModuleFactory instead.

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