What’s the alternative to location.reload(true) in JavaScript?

What’s the recommended alternative now that javascript:location.reload(true) is deprecated?

I understand it’s not ideal to reload an Angular Single Page Application, but there’s a scenario in my project where a full page reload is necessary. Previously, I used javascript:location.reload(true) to force a reload from the server, but TSLint flags it as deprecated.

What’s the proper or modern way to handle this now, especially within an Angular app? Is there a clean alternative to force a reload without relying on the deprecated javascript:location.reload(true) syntax?