linkgetPlatform function experimental npm Package @angular/core Module import { getPlatform } from '@angular/core'; Source core/src/application_ref.ts function getPlatform(): PlatformRef | null; linkDescription Returns the current platform.