PlatformState

From Get docs
< @angular/platform-serverAngular/docs/8/api/platform-server/platformstate


PlatformState

class

Representation of the current platform state.

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

Methods

Renders the current state of the platform to string.

renderToString(): string

Parameters

There are no parameters.

Returns

string


Returns the current DOM state.

getDocument(): any

Parameters

There are no parameters.

Returns

any



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v8.angular.io/api/platform-server/PlatformState