isPlatformServer determines whether an Angular application is executing on a server platform. SSR code uses this distinction to avoid browser-only behavior and select environment-appropriate implementations. section 27.4.2
Wrap platform detection in a service
Inject PLATFORM_ID and expose a small application-facing property: `constructor(@Inject(PLATFORM_ID) private platformId: Object) {}` followed by `get isServer() { return isPlatformServer(this.platformId); }`. Register PlatformService, then use `ps.isServer` where runtime behavior differs.
Choose an SSR-safe request URL
A REST data source selects `http://localhost:3500/products` on the server and uses the browser's `location.hostname` in the browser. This confines direct browser API access to browser execution. section 27.4.2
