injectPlatform

Composable that resolves the current platform environment using Angular's Dependency Injection. Returns a typed object with `isBrowser`, `isServer`, `window`, and `document` fields. Gracefully falls back when called outside an injection context (e.g. unit tests).

TypeScriptexample.ts
import { injectPlatform } from '@angular-helpers/core'
LCP N/A
CLS N/A
INP N/A