renderModule
Bootstraps an application using provided NgModule and serializes the page content to string.
renderModule<T>(moduleType: Type<T>, options: { document?: string | Document; url?: string; extraProviders?: StaticProvider[]; }): Promise<string>
Parameters
moduleType
|
Type<T> |
A reference to an NgModule that should be used for bootstrap. |
options
|
object |
Additional configuration for the render operation:
|
Returns
Promise<string>