W3cubDocs

/Angular 4 TypeScript

ServerModule

Experimental Class

Class Overview

class ServerModule {
}

Class Description

The ng module for the server.

Annotations

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

exported from platform-server/index, defined in platform-server/src/server.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/platform-server/index/ServerModule-class.html