This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

getPlatform

Returns the current platform.

      
      getPlatform(): PlatformRef | null
    

Parameters

There are no parameters.

Returns

PlatformRef | null