Is it possible to trigger angular change detection globally, without injecting something like ApplicationRef? I would want to use the following functionality as a plain js function and not as a service method. Thus avoiding to inject an extra service whereever the function is needed.
export function frequentlyUsedUtilityFunction() {
// ... do stuff
// trigger change detection
// get applicationRef or some similar mechanism
const applicationRef = ...
applicationRef.tick();
// ... do more stuff
}