[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/getPlatform [Back]  [Original]

getPlatform Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

getPlatform

function
stable

Returns the current platform in the browser environment. In the server environment, returns null. If you need access to the platform information, inject PlatformRef in your application.

On this page

    arrow_upward_alt Back to the top

    API

    function getPlatform(): PlatformRef | null;
    @returnsPlatformRef | null
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page