ServerModule

The ng module for the server.

class ServerModule { }

注解

@NgModule({ exports: [BrowserModule], imports: [HttpModule, HttpClientModule, NoopAnimationsModule], providers: [ SERVER_RENDER_PROVIDERS, SERVER_HTTP_PROVIDERS, { provide: Testability, useValue: null }, { provide: ViewportScroller, useClass: NullViewportScroller }, ] })