Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

import { Injectable } from '@angular/core';

const _window: any = () => window;
// In Angular, global variables such as window, and URL should be avoided, since they vary by platform.
// Angular isn't always run in a browser. This _may_ not apply to ARS, but it's the "Angular Way".
// Instead, a service provides an injectable value that isolates Angular components from possible changes.
@Injectable()
export class WindowRefService {
get nativeWindow(): any {
return _window();
}
// constructor() { }
}