@angular/platform-server

renderModule

function

Bootstraps an application using provided NgModule and serializes the page content to string.

  
    renderModule(  moduleType: Type<T>,  options: { document?: string | Document; url?: string; extraProviders?: StaticProvider[]; }): Promise<string>;
  
  
Jump to details