renderModule • Angular 日本語版
@parammoduleTypeType<T>
A reference to an NgModule that should be used for bootstrap.
@paramoptions{ document?: string | Document | undefined; url?: string | undefined; extraProviders?: StaticProvider[] | undefined; allowedHosts?: string[] | undefined; }
Additional configuration for the render operation:
document- the document of the page to render, either as an HTML string or as a reference to thedocumentinstance.url- the URL for the current render request.extraProviders- set of platform level providers for the current render request.allowedHosts- the allowed hosts list for host validation in server-side rendering.
@returnsPromise<string>