I was wondering if it was possible to perform a global refresh on my Angular (2+) app. I am using the OnPush change detection strategy for performance.
I have created a service that translates words from my templates to the browser language of the user. These pipes are pure (for performance reasons and the language should not be updated frequently).
What I am trying to achieve is that I can change my language dynamically. So basically I want to change all pure pipes when the user selects a different language.
I have solved this by doing a page refresh (window.location.reload()), but now I was wondering if it was possible by doing a complete change detection cycle. I have tried using the ApplicationRef and ChangeDetectionRef but these pure pipes won't get updated. Is this even possible?