getPlatform
function
stable
Returns the current platform.
getPlatform
PlatformRef | null
Returns the current platform.
@returns
PlatformRef | null
Usage Notes
This function should not be used when multiple platforms are enabled (e.g., SSR) as it will also return null
.
Jump to details