getPlatform
Возвращает текущую платформу в браузерной среде. В серверной среде возвращает null. Если вам нужен доступ к информации о платформе, внедрите PlatformRef в приложение.
API
function getPlatform(): PlatformRef | null;
@returns
PlatformRef | null
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/getPlatform