renderModuleFactory

Renders a NgModuleFactoryto string.

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

参数

moduleFactory

Type: NgModuleFactory.

options

Type: { document?: string; url?: string; extraProviders?: StaticProvider[]; }.

返回值

Promise<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.