@angular/platform-server

renderModule

function

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

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