API > @angular/core code getPlatformlink function Returns the current platform. getPlatform(): PlatformRef | null Parameters There are no parameters. Returns PlatformRef | null