• Overview
@angular/platform-server

renderModule

function
stable

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

API

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