W3cubDocs

/Angular 4 TypeScript

PlatformState

Experimental Class

Class Overview

class PlatformState {
  constructor(_doc: any)
  
  
  renderToString() : string
  getDocument() : any
}

Class Description

Representation of the current platform state.

Annotations

@Injectable()

Constructor

constructor(_doc: any)

Class Details

renderToString() : string

Renders the current state of the platform to string.

getDocument() : any

Returns the current DOM state.

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

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